Skip to contentSkip to conversation

binfmt-move-more-stuff-undef-config_coredump.patch removed from -mm tree

merged Andrew Morton 1 participant 1 message Feb 28, 2022

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The patch titled
Subject: binfmt: move more stuff undef CONFIG_COREDUMP
has been removed from the -mm tree. Its filename was
binfmt-move-more-stuff-undef-config_coredump.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Alexey Dobriyan <[email protected]>
Subject: binfmt: move more stuff undef CONFIG_COREDUMP

struct linux_binfmt::core_dump and struct min_coredump::min_coredump are used under CONFIG_COREDUMP only. Shrink those embedded configs a bit.

---

 fs/binfmt_elf.c         |    2 ++
 fs/binfmt_elf_fdpic.c   |    2 +-
 fs/binfmt_flat.c        |    2 ++
 include/linux/binfmts.h |    2 ++
 4 files changed, 7 insertions(+), 1 deletion(-)
fs/binfmt_elf.c renamed from fs/binfmt_elf.c~binfmt-move-more-stuff-undef-config_coredump +2 -0
@@ -101,8 +101,10 @@ static struct linux_binfmt elf_format =
 	.module		= THIS_MODULE,
 	.load_binary	= load_elf_binary,
 	.load_shlib	= load_elf_library,
+#ifdef CONFIG_COREDUMP
 	.core_dump	= elf_core_dump,
 	.min_coredump	= ELF_EXEC_PAGESIZE,
+#endif
 };
 
 #define BAD_ADDR(x) (unlikely((unsigned long)(x) >= TASK_SIZE))
fs/binfmt_elf_fdpic.c renamed from fs/binfmt_elf_fdpic.c~binfmt-move-more-stuff-undef-config_coredump +1 -1
@@ -83,8 +83,8 @@ static struct linux_binfmt elf_fdpic_for
 	.load_binary	= load_elf_fdpic_binary,
 #ifdef CONFIG_ELF_CORE
 	.core_dump	= elf_fdpic_core_dump,
-#endif
 	.min_coredump	= ELF_EXEC_PAGESIZE,
+#endif
 };
 
 static int __init init_elf_fdpic_binfmt(void)
fs/binfmt_flat.c renamed from fs/binfmt_flat.c~binfmt-move-more-stuff-undef-config_coredump +2 -0
@@ -102,8 +102,10 @@ static int flat_core_dump(struct coredum
 static struct linux_binfmt flat_format = {
 	.module		= THIS_MODULE,
 	.load_binary	= load_flat_binary,
+#ifdef CONFIG_COREDUMP
 	.core_dump	= flat_core_dump,
 	.min_coredump	= PAGE_SIZE
+#endif
 };
 
 /****************************************************************************/
include/linux/binfmts.h renamed from include/linux/binfmts.h~binfmt-move-more-stuff-undef-config_coredump +2 -0
@@ -98,8 +98,10 @@ struct linux_binfmt {
 	struct module *module;
 	int (*load_binary)(struct linux_binprm *);
 	int (*load_shlib)(struct file *);
+#ifdef CONFIG_COREDUMP
 	int (*core_dump)(struct coredump_params *cprm);
 	unsigned long min_coredump;	/* minimal dump size */
+#endif
 } __randomize_layout;
 
 extern void __register_binfmt(struct linux_binfmt *fmt, int insert);

_

Patches currently in -mm which might be from [email protected] are