mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +00:00
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. Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: Kees Cook <keescook@chromium.org> Link: https://lore.kernel.org/r/YglbIFyN+OtwVyjW@localhost.localdomain
This commit is contained in:
parent
9132c3947b
commit
d65bc29be0
4 changed files with 7 additions and 1 deletions
|
@ -102,8 +102,10 @@ static int flat_core_dump(struct coredump_params *cprm);
|
|||
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
|
||||
};
|
||||
|
||||
/****************************************************************************/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue