Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp1212286lqz; Sun, 31 Mar 2024 20:41:31 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVsRaKOZBKT6TJ4VacjSfnoXWZu/nT6353zEBBFLbMJ/pfmZYOOKheV1nV7CqN3Rm6QT7SezxKgzIBsNkVPhD3fV7wgVd++jDMiBjf0AQ== X-Google-Smtp-Source: AGHT+IEDuCQLNs2iiVd39T/xIVK+SLUoJ5dDOmIa6wP/EorMtDedDK9UGyw6/1QnOeQaGJMIw9pX X-Received: by 2002:a17:902:d894:b0:1e0:10c1:6288 with SMTP id b20-20020a170902d89400b001e010c16288mr6654676plz.51.1711942890786; Sun, 31 Mar 2024 20:41:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711942890; cv=pass; d=google.com; s=arc-20160816; b=KNNjrf/BcAqgSC83vQqwANnqBAHWZGy4HszW2FTqVGiNfclY3nSOKglthvbyze4QZx +CaDvzF84+H7tWC3gNH79JZgV0hzX1JOZjJfY6wgSjs0aI/+siwYJoIU7I4VpOifvbnb yiH0FT5hl9AtWpWlY2Qg1CqxRpmHIQi0wAXulaL7SkTM2zzSL+G4hyZjqZr0+lXJ+1Ts xWJ52WwFGGwoiU95GmbO8Ju/pVflWl2SgFgjepYadI7fIhu57/ak8c/P882NKR3mYNVp MBbQp9eSt7hZ/HznKZAUqSmUntUuRmBe9ht6ho9c2SQO+yHX82Z7Gz0AwPWTfGIjZrOA I+3Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:content-language:in-reply-to:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:user-agent:date :message-id:from:references:cc:to:subject; bh=/Nb/DdK7BgETKoOWFd4fA9lJPaj4KTokSZEja2SKQJM=; fh=SJqati37IszKLEbzUU9mQ0KR2a7SmDqqx8Kf1J5Iu0Y=; b=IGZ4DXAZD5L7JrpzoZ49vndM2GvtbFU8QONvHt942ioVGGrK63uj19SslX7xEdqmHg RnCLC6tHi6i1Yn8IVWGm84Yhb/Q38QMLqVsbFnOXXM2SS/poGxzb5SW4gHwWR4EUyD6u lPeuPVUr+neaOtgizPc3Bv8RMtDah1lEkot0zfbK9514ZHdxP/pTzkUYSY0CH4hz6DXJ YuDh8AH9ymencsIhfKmzvH9vN2VtUcOM4iFsFQipmoK8xQp4AZ0EiIQaNHnXLA03lxh/ Zhxls1VGryRxsi3zNiki2WOj29UVWKEq8WZWrmqPpfe2B5MFpdTfTRshfwVEOMpoUAKi Vs5A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-crypto+bounces-3229-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-crypto+bounces-3229-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=QUARANTINE) header.from=huawei.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id i7-20020a17090332c700b001e0db863834si8716041plr.494.2024.03.31.20.41.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 31 Mar 2024 20:41:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto+bounces-3229-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-crypto+bounces-3229-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-crypto+bounces-3229-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=QUARANTINE) header.from=huawei.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 76BAC281C30 for ; Mon, 1 Apr 2024 03:41:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B3DB05664; Mon, 1 Apr 2024 03:41:23 +0000 (UTC) X-Original-To: linux-crypto@vger.kernel.org Received: from szxga04-in.huawei.com (szxga04-in.huawei.com [45.249.212.190]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 985351362; Mon, 1 Apr 2024 03:41:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.190 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711942883; cv=none; b=cBdL2RuEzA/koJRdUPuV6T2xqU70H2ACc/v2somBMvRqirbeRVbyER34qTexEsgTcT5fgO1Whr177Sm7mJ5gsUcKRb7jbnMOauzNAlFqDioSlqAlnkiTcYS2Pko5LNE+SsD46o3rcQmYD5RrI5M1pVE8O9jYiNhiuMvdDLxtUac= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711942883; c=relaxed/simple; bh=Y+C6YOutpzawaB9+UJw3qAWVjD/gimExt0e/uFbsI/M=; h=Subject:To:CC:References:From:Message-ID:Date:MIME-Version: In-Reply-To:Content-Type; b=mY7Zk+TlqPu+lrZp7JFB4o4xRLuTe0T0l5lwKEyf/RlZzxfTwzOgGUlk8z4t+NoeFia2/2U+Fo20XeD6iK7KPJdITlUistow2/yNUhTmp+S6Q2SNpTnNIHVbMnJEUrRSLoNWXULJForu/DemB62v3kznoGkHCly12w2wz5N6ENM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com; spf=pass smtp.mailfrom=huawei.com; arc=none smtp.client-ip=45.249.212.190 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.19.88.214]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4V7Gvt1Wpsz1xtQy; Mon, 1 Apr 2024 11:39:06 +0800 (CST) Received: from canpemm500002.china.huawei.com (unknown [7.192.104.244]) by mail.maildlp.com (Postfix) with ESMTPS id C7BCE1A016F; Mon, 1 Apr 2024 11:41:11 +0800 (CST) Received: from [10.173.135.154] (10.173.135.154) by canpemm500002.china.huawei.com (7.192.104.244) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Mon, 1 Apr 2024 11:41:10 +0800 Subject: Re: [PATCH 1/7] memory: Remove the now superfluous sentinel element from ctl_table array To: CC: Luis Chamberlain , , , , , , , , , , , Andrew Morton , Muchun Song , Naoya Horiguchi , John Johansen , Paul Moore , James Morris , "Serge E. Hallyn" , David Howells , Jarkko Sakkinen , Kees Cook , Herbert Xu , "David S. Miller" , Jens Axboe , Pavel Begunkov , Atish Patra , Anup Patel , Will Deacon , Mark Rutland , Paul Walmsley , Palmer Dabbelt , Albert Ou References: <20240328-jag-sysctl_remset_misc-v1-0-47c1463b3af2@samsung.com> <20240328-jag-sysctl_remset_misc-v1-1-47c1463b3af2@samsung.com> From: Miaohe Lin Message-ID: <0e35e88d-3ea1-4f62-77e4-eb12e9f51583@huawei.com> Date: Mon, 1 Apr 2024 11:41:09 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 Precedence: bulk X-Mailing-List: linux-crypto@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 In-Reply-To: <20240328-jag-sysctl_remset_misc-v1-1-47c1463b3af2@samsung.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To canpemm500002.china.huawei.com (7.192.104.244) On 2024/3/28 23:57, Joel Granados via B4 Relay wrote: > From: Joel Granados > > This commit comes at the tail end of a greater effort to remove the > empty elements at the end of the ctl_table arrays (sentinels) which will > reduce the overall build time size of the kernel and run time memory > bloat by ~64 bytes per sentinel (further information Link : > https://lore.kernel.org/all/ZO5Yx5JFogGi%2FcBo@bombadil.infradead.org/) > > Remove sentinel from all files under mm/ that register a sysctl table. > > Signed-off-by: Joel Granados Reviewed-by: Miaohe Lin Thanks. > --- > mm/compaction.c | 1 - > mm/hugetlb.c | 1 - > mm/hugetlb_vmemmap.c | 1 - > mm/memory-failure.c | 1 - > mm/oom_kill.c | 1 - > mm/page-writeback.c | 1 - > mm/page_alloc.c | 1 - > 7 files changed, 7 deletions(-) > > diff --git a/mm/compaction.c b/mm/compaction.c > index 807b58e6eb68..e8a047afca22 100644 > --- a/mm/compaction.c > +++ b/mm/compaction.c > @@ -3345,7 +3345,6 @@ static struct ctl_table vm_compaction[] = { > .extra1 = SYSCTL_ZERO, > .extra2 = SYSCTL_ONE, > }, > - { } > }; > > static int __init kcompactd_init(void) > diff --git a/mm/hugetlb.c b/mm/hugetlb.c > index 23ef240ba48a..7ac5240a197d 100644 > --- a/mm/hugetlb.c > +++ b/mm/hugetlb.c > @@ -5045,7 +5045,6 @@ static struct ctl_table hugetlb_table[] = { > .mode = 0644, > .proc_handler = hugetlb_overcommit_handler, > }, > - { } > }; > > static void hugetlb_sysctl_init(void) > diff --git a/mm/hugetlb_vmemmap.c b/mm/hugetlb_vmemmap.c > index da177e49d956..b9a55322e52c 100644 > --- a/mm/hugetlb_vmemmap.c > +++ b/mm/hugetlb_vmemmap.c > @@ -679,7 +679,6 @@ static struct ctl_table hugetlb_vmemmap_sysctls[] = { > .mode = 0644, > .proc_handler = proc_dobool, > }, > - { } > }; > > static int __init hugetlb_vmemmap_init(void) > diff --git a/mm/memory-failure.c b/mm/memory-failure.c > index 9349948f1abf..6a112f9ecf91 100644 > --- a/mm/memory-failure.c > +++ b/mm/memory-failure.c > @@ -141,7 +141,6 @@ static struct ctl_table memory_failure_table[] = { > .extra1 = SYSCTL_ZERO, > .extra2 = SYSCTL_ONE, > }, > - { } > }; > > /* > diff --git a/mm/oom_kill.c b/mm/oom_kill.c > index 8d6a207c3c59..4d7a0004df2c 100644 > --- a/mm/oom_kill.c > +++ b/mm/oom_kill.c > @@ -724,7 +724,6 @@ static struct ctl_table vm_oom_kill_table[] = { > .mode = 0644, > .proc_handler = proc_dointvec, > }, > - {} > }; > #endif > > diff --git a/mm/page-writeback.c b/mm/page-writeback.c > index 3e19b87049db..fba324e1a010 100644 > --- a/mm/page-writeback.c > +++ b/mm/page-writeback.c > @@ -2291,7 +2291,6 @@ static struct ctl_table vm_page_writeback_sysctls[] = { > .mode = 0644, > .proc_handler = proc_dointvec_jiffies, > }, > - {} > }; > #endif > > diff --git a/mm/page_alloc.c b/mm/page_alloc.c > index 14d39f34d336..8b9820620fe3 100644 > --- a/mm/page_alloc.c > +++ b/mm/page_alloc.c > @@ -6211,7 +6211,6 @@ static struct ctl_table page_alloc_sysctl_table[] = { > .extra2 = SYSCTL_ONE_HUNDRED, > }, > #endif > - {} > }; > > void __init page_alloc_sysctl_init(void) >