Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1C2E1C433F5 for ; Mon, 28 Feb 2022 02:58:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232626AbiB1C6w (ORCPT ); Sun, 27 Feb 2022 21:58:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39920 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232710AbiB1C6r (ORCPT ); Sun, 27 Feb 2022 21:58:47 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8F44231340 for ; Sun, 27 Feb 2022 18:58:09 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 2D3A960ECD for ; Mon, 28 Feb 2022 02:58:09 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7E854C340EE; Mon, 28 Feb 2022 02:58:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1646017088; bh=JhTv0BRI2gAUV0PCroL0ox2pJ9810c+kMsTTlbShdvg=; h=Date:To:From:Subject:From; b=iOSfDl3MZIt1PSwB60QvgyzELcDremdq/PI0nfaoIWwYVRk3NyXkErFBLS/ZnqzGq xX/Fe9TVT4KZzuwxRIvajncEYRMJoZvFi7w9oIyqtuZPMjTIXbAs6qPg8C4W4/QUXY APyNO1lrG5AdoooZOP3/p9o41YHwevFcnryvx5io= Date: Sun, 27 Feb 2022 18:58:07 -0800 To: mm-commits@vger.kernel.org, adobriyan@gmail.com, akpm@linux-foundation.org From: Andrew Morton Subject: [merged] binfmt-move-more-stuff-undef-config_coredump.patch removed from -mm tree Message-Id: <20220228025808.7E854C340EE@smtp.kernel.org> Precedence: bulk Reply-To: linux-kernel@vger.kernel.org List-ID: X-Mailing-List: mm-commits@vger.kernel.org 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 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. Link: https://lkml.kernel.org/r/YglbIFyN+OtwVyjW@localhost.localdomain Signed-off-by: Alexey Dobriyan Signed-off-by: Andrew Morton --- 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(-) --- a/fs/binfmt_elf.c~binfmt-move-more-stuff-undef-config_coredump +++ a/fs/binfmt_elf.c @@ -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)) --- a/fs/binfmt_elf_fdpic.c~binfmt-move-more-stuff-undef-config_coredump +++ a/fs/binfmt_elf_fdpic.c @@ -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) --- a/fs/binfmt_flat.c~binfmt-move-more-stuff-undef-config_coredump +++ a/fs/binfmt_flat.c @@ -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 }; /****************************************************************************/ --- a/include/linux/binfmts.h~binfmt-move-more-stuff-undef-config_coredump +++ a/include/linux/binfmts.h @@ -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 adobriyan@gmail.com are