From mboxrd@z Thu Jan 1 00:00:00 1970 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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4138DC4167B for ; Wed, 8 Nov 2023 09:56:40 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 9B23480018; Wed, 8 Nov 2023 04:56:39 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 9042A8D00B5; Wed, 8 Nov 2023 04:56:39 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 7577780018; Wed, 8 Nov 2023 04:56:39 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0010.hostedemail.com [216.40.44.10]) by kanga.kvack.org (Postfix) with ESMTP id 61FF58D00AD for ; Wed, 8 Nov 2023 04:56:39 -0500 (EST) Received: from smtpin08.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay10.hostedemail.com (Postfix) with ESMTP id 2F07FC0424 for ; Wed, 8 Nov 2023 09:56:39 +0000 (UTC) X-FDA: 81434332518.08.BFDEC96 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by imf30.hostedemail.com (Postfix) with ESMTP id 6E49680024; Wed, 8 Nov 2023 09:56:36 +0000 (UTC) Authentication-Results: imf30.hostedemail.com; dkim=pass header.d=suse.cz header.s=susede2_rsa header.b=RasriPX1; dkim=pass header.d=suse.cz header.s=susede2_ed25519 header.b=uvkiSVTf; spf=pass (imf30.hostedemail.com: domain of jack@suse.cz designates 195.135.220.29 as permitted sender) smtp.mailfrom=jack@suse.cz; dmarc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1699437397; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=haSY/yaIV/fqYTZuzHRwE6iFrXPdX6sCOgCYcYIKygU=; b=Qg5FW4oqjW66elXQ7MOyjxoqj9JjZMqYxTt+nsl4DxxMLgZHkAtv0yGJ7PAzDJ+eL4PJRb L0K19rZaqe4TTTBkTR29FKgm1ToJV5xoPvGS6//EQEYaLZ3a2FRXL7r6cfVBC4VRlEmGTP aUeKIHACbYVOdEWqt2sWDh74s0iBTGE= ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1699437397; a=rsa-sha256; cv=none; b=fgzWkSCLGFNtu8GcJYhDWcnArL6/J39sEDmCNQyFteWSDCKpmurUyo58iPSsPMXyTJmdIw AZhk3ZtrPQx3SYFj0w2AV/8axatCqZ8VqkCo64k18P6H55Jna7abPTjVrOnxtfltT9U9Ah jUTUP5ke5D+5siTdN2EWZUmRsjcqwtI= ARC-Authentication-Results: i=1; imf30.hostedemail.com; dkim=pass header.d=suse.cz header.s=susede2_rsa header.b=RasriPX1; dkim=pass header.d=suse.cz header.s=susede2_ed25519 header.b=uvkiSVTf; spf=pass (imf30.hostedemail.com: domain of jack@suse.cz designates 195.135.220.29 as permitted sender) smtp.mailfrom=jack@suse.cz; dmarc=none Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 2AC2C1F45A; Wed, 8 Nov 2023 09:56:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1699437394; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=haSY/yaIV/fqYTZuzHRwE6iFrXPdX6sCOgCYcYIKygU=; b=RasriPX17pB635D8dXsKwR06/JxRrmOsKBDaPJyRJLetV+VEbuQey9uAYZwsa7GqsZz1Eh VFlVNKj4jCMe+54JDQMCjtdI+Es8g4oizMrpjeX4YnNACbz/rLXEHhI+FgYRJFZclW6v65 xNsxvs2zWz0Yz0XUBWPTwrHmYcLVLsE= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1699437394; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=haSY/yaIV/fqYTZuzHRwE6iFrXPdX6sCOgCYcYIKygU=; b=uvkiSVTfUaO2euHnE8o6Rp1Q3WTapY4QB6I/bsm0zkvjqLGP2+33vDahjFSCFlZsyVoCBM exavwRnnW842XEBg== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 12DEE133F5; Wed, 8 Nov 2023 09:56:34 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id 04+OBFJbS2VLXwAAMHmgww (envelope-from ); Wed, 08 Nov 2023 09:56:34 +0000 Received: by quack3.suse.cz (Postfix, from userid 1000) id 9D4ECA07C0; Wed, 8 Nov 2023 10:56:33 +0100 (CET) Date: Wed, 8 Nov 2023 10:56:33 +0100 From: Jan Kara To: j.granados@samsung.com Cc: Luis Chamberlain , willy@infradead.org, josh@joshtriplett.org, Kees Cook , David Howells , Alexander Viro , Christian Brauner , Benjamin LaHaise , Eric Biederman , Trond Myklebust , Anna Schumaker , Chuck Lever , Jeff Layton , Neil Brown , Olga Kornievskaia , Dai Ngo , Tom Talpey , Jan Kara , Amir Goldstein , Matthew Bobrowski , Anton Altaparmakov , Namjae Jeon , Mark Fasheh , Joel Becker , Joseph Qi , Iurii Zaikin , Eric Biggers , "Theodore Y. Ts'o" , Chandan Babu R , "Darrick J. Wong" , Jan Harkes , coda@cs.cmu.edu, linux-cachefs@redhat.com, linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-aio@kvack.org, linux-mm@kvack.org, linux-nfs@vger.kernel.org, linux-ntfs-dev@lists.sourceforge.net, ocfs2-devel@lists.linux.dev, fsverity@lists.linux.dev, linux-xfs@vger.kernel.org, codalist@coda.cs.cmu.edu Subject: Re: [PATCH 2/4] aio: Remove the now superfluous sentinel elements from ctl_table array Message-ID: <20231108095633.ec6im6btx7hprl6o@quack3> References: <20231107-jag-sysctl_remove_empty_elem_fs-v1-0-7176632fea9f@samsung.com> <20231107-jag-sysctl_remove_empty_elem_fs-v1-2-7176632fea9f@samsung.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231107-jag-sysctl_remove_empty_elem_fs-v1-2-7176632fea9f@samsung.com> X-Rspamd-Queue-Id: 6E49680024 X-Rspam-User: X-Stat-Signature: jzht53jo9efcikqkp96bm9bwekswahhb X-Rspamd-Server: rspam03 X-HE-Tag: 1699437396-641501 X-HE-Meta: U2FsdGVkX185nvjtKYTAW5L3cP74gUUyql3JNnoq34JzWQwbssPc5V/xbxewD5i2hRQnt9P12KdDqBZNr8D4fmM9nfYRV3ezQEAV3M3Vs52SjO2W47NRD763hcZQrZcUXgc+0iGoVjx4Qyy4KCc0tYAzeeLvk9D8sQDnsdAX5CjY6d+Nx7VutgwB09r0hh/WjJ+3RtxTxes+ShtwYDjfUV68ZyaLPTKmvS74xQ3U8uTJuHlGgJ4iBD/sYxch2J3I247aWSycii8b8yBqzjBe/o6wnyQiUbirvOYxzWxflWoJn/5bvVxDN78m93L3WJ4Qms53NxS6Bt+sYGkvJ3qqKhbhRIelBWZGSQv1R4aElVGHhRsUlbFOAM6Ne/x6/7IcLn2O/e962zohhIYm9i2HpCr7kHm69vVeLKcOKqMnJo8VqumP0udmDqbjwRLqlwNi+1gepEaA8RKYXQqaPejKkXUJBGwUwTpeUC3rLdF4bTcApN9SIQHYe8BO9duH+hXZkEqAQihwtRk9YpVqYRs0qlMw8FLLn6/Skoy0a4sEDoOEREQESiRTSZN1kMDcfwcr9XpWQSi1go6Zx3tfOlLTup2vNSEt8oEh/trRb9mdmUOw9hzYd7/KITOFfIKPxxlYpItfV1eD6CbckGXkXC+MQkDtize+WSfWZohlKwIR4TaPquRlgF0oG1nDFqDT9WaPfxk1QG/DGUBSbVjVZUEhtg+oWyETSbAS36nZak5NIFPiMlpx0ota2xUQGuNT7zDhRHRYAHOVQ9uBCItzBNAb73J60XGdd+17XiZLiF2FCuyLah8nONPhkIZoNaO3nQVuY4fiuk8zt6XaNb+xu1qRvI0/mletrfnOLkCcGEqr9n+rUYOpWGfrghCbkGItK41pnN0YcdnC00Nnu0950eDwXHW5Jb8ta7vM/Xa6fyzJQvmZ3X3EUsKWiDAauOrYpEFxpivwzycuzLdLLN++yNZ Ebph7aXI deaHkmiIz+Ik0lAwegrG91a84HiI+3G/ROqY5LaRKOuvWtiZRSUrRPmXTYzvHdFxlNsejtQ3EBS2hCWUk3rcjyoIuB6NemM4V/7E1Gp0bp0QHlh6FCSVlf7WGwnHIVqVuwXWX9BVKPMPCRMsKz+d3LiSCleSbj93otAnTfZU0ncCKrld62PbnSqfrL8+Bo3cCB9rnVTzoclEsaWm7WRHxFeJhASHys0ODp2I7gUakC4dT2220PxpoI/4xVcdQR/XpE4e6XmFM6WTypx4Dn3HM8NPLLM3cC67/aoSn4FnafDEaaJlKCe1xWr5t8+JGzTTH82CAPy1u9GniLxArYfygSMiz3XTwoXrNOJGcwwgSpUcmVV548oboRoAfGRipyveMW6cuq38y2KRZQRsbLerfhlryslrk5NDFWn7B0jkdDEYCUPaREqOTkEIulDocN64iQwGv X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: On Tue 07-11-23 14:44:21, 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 elements ctl_table struct. Special attention was placed in > making sure that an empty directory for fs/verity was created when > CONFIG_FS_VERITY_BUILTIN_SIGNATURES is not defined. In this case we use the > register sysctl call that expects a size. > > Signed-off-by: Joel Granados For fs/*.c, fs/quota/, fs/notify/, fs/ocfs2/ feel free to add: Reviewed-by: Jan Kara Other bits look good to me as well besides fsverify changes which looks odd and Eric already commented on that. Honza > --- > fs/aio.c | 1 - > fs/coredump.c | 1 - > fs/dcache.c | 1 - > fs/devpts/inode.c | 1 - > fs/eventpoll.c | 1 - > fs/exec.c | 1 - > fs/file_table.c | 1 - > fs/inode.c | 1 - > fs/lockd/svc.c | 1 - > fs/locks.c | 1 - > fs/namei.c | 1 - > fs/namespace.c | 1 - > fs/nfs/nfs4sysctl.c | 1 - > fs/nfs/sysctl.c | 1 - > fs/notify/dnotify/dnotify.c | 1 - > fs/notify/fanotify/fanotify_user.c | 1 - > fs/notify/inotify/inotify_user.c | 1 - > fs/ntfs/sysctl.c | 1 - > fs/ocfs2/stackglue.c | 1 - > fs/pipe.c | 1 - > fs/proc/proc_sysctl.c | 1 - > fs/quota/dquot.c | 1 - > fs/sysctls.c | 1 - > fs/userfaultfd.c | 1 - > fs/verity/fsverity_private.h | 2 +- > fs/verity/init.c | 8 +++++--- > fs/xfs/xfs_sysctl.c | 2 -- > 27 files changed, 6 insertions(+), 30 deletions(-) > > diff --git a/fs/aio.c b/fs/aio.c > index a4c2a6bac72c..da069d6b6c66 100644 > --- a/fs/aio.c > +++ b/fs/aio.c > @@ -239,7 +239,6 @@ static struct ctl_table aio_sysctls[] = { > .mode = 0644, > .proc_handler = proc_doulongvec_minmax, > }, > - {} > }; > > static void __init aio_sysctl_init(void) > diff --git a/fs/coredump.c b/fs/coredump.c > index 9d235fa14ab9..f258c17c1841 100644 > --- a/fs/coredump.c > +++ b/fs/coredump.c > @@ -981,7 +981,6 @@ static struct ctl_table coredump_sysctls[] = { > .mode = 0644, > .proc_handler = proc_dointvec, > }, > - { } > }; > > static int __init init_fs_coredump_sysctls(void) > diff --git a/fs/dcache.c b/fs/dcache.c > index 25ac74d30bff..bafdd455b0fe 100644 > --- a/fs/dcache.c > +++ b/fs/dcache.c > @@ -191,7 +191,6 @@ static struct ctl_table fs_dcache_sysctls[] = { > .mode = 0444, > .proc_handler = proc_nr_dentry, > }, > - { } > }; > > static int __init init_fs_dcache_sysctls(void) > diff --git a/fs/devpts/inode.c b/fs/devpts/inode.c > index 299c295a27a0..a4de1612b1db 100644 > --- a/fs/devpts/inode.c > +++ b/fs/devpts/inode.c > @@ -69,7 +69,6 @@ static struct ctl_table pty_table[] = { > .data = &pty_count, > .proc_handler = proc_dointvec, > }, > - {} > }; > > struct pts_mount_opts { > diff --git a/fs/eventpoll.c b/fs/eventpoll.c > index 1d9a71a0c4c1..975fc5623102 100644 > --- a/fs/eventpoll.c > +++ b/fs/eventpoll.c > @@ -322,7 +322,6 @@ static struct ctl_table epoll_table[] = { > .extra1 = &long_zero, > .extra2 = &long_max, > }, > - { } > }; > > static void __init epoll_sysctls_init(void) > diff --git a/fs/exec.c b/fs/exec.c > index 6518e33ea813..7a18bde22f25 100644 > --- a/fs/exec.c > +++ b/fs/exec.c > @@ -2167,7 +2167,6 @@ static struct ctl_table fs_exec_sysctls[] = { > .extra1 = SYSCTL_ZERO, > .extra2 = SYSCTL_TWO, > }, > - { } > }; > > static int __init init_fs_exec_sysctls(void) > diff --git a/fs/file_table.c b/fs/file_table.c > index ee21b3da9d08..544f7d4f166f 100644 > --- a/fs/file_table.c > +++ b/fs/file_table.c > @@ -137,7 +137,6 @@ static struct ctl_table fs_stat_sysctls[] = { > .extra1 = &sysctl_nr_open_min, > .extra2 = &sysctl_nr_open_max, > }, > - { } > }; > > static int __init init_fs_stat_sysctls(void) > diff --git a/fs/inode.c b/fs/inode.c > index 35fd688168c5..ce16e3cda7bf 100644 > --- a/fs/inode.c > +++ b/fs/inode.c > @@ -129,7 +129,6 @@ static struct ctl_table inodes_sysctls[] = { > .mode = 0444, > .proc_handler = proc_nr_inodes, > }, > - { } > }; > > static int __init init_fs_inode_sysctls(void) > diff --git a/fs/lockd/svc.c b/fs/lockd/svc.c > index 6579948070a4..f784ff58bfd3 100644 > --- a/fs/lockd/svc.c > +++ b/fs/lockd/svc.c > @@ -474,7 +474,6 @@ static struct ctl_table nlm_sysctls[] = { > .mode = 0644, > .proc_handler = proc_dointvec, > }, > - { } > }; > > #endif /* CONFIG_SYSCTL */ > diff --git a/fs/locks.c b/fs/locks.c > index 76ad05f8070a..6ecfc422fb37 100644 > --- a/fs/locks.c > +++ b/fs/locks.c > @@ -111,7 +111,6 @@ static struct ctl_table locks_sysctls[] = { > .proc_handler = proc_dointvec, > }, > #endif /* CONFIG_MMU */ > - {} > }; > > static int __init init_fs_locks_sysctls(void) > diff --git a/fs/namei.c b/fs/namei.c > index 567ee547492b..fb552161c981 100644 > --- a/fs/namei.c > +++ b/fs/namei.c > @@ -1070,7 +1070,6 @@ static struct ctl_table namei_sysctls[] = { > .extra1 = SYSCTL_ZERO, > .extra2 = SYSCTL_TWO, > }, > - { } > }; > > static int __init init_fs_namei_sysctls(void) > diff --git a/fs/namespace.c b/fs/namespace.c > index e157efc54023..e95d4328539d 100644 > --- a/fs/namespace.c > +++ b/fs/namespace.c > @@ -5008,7 +5008,6 @@ static struct ctl_table fs_namespace_sysctls[] = { > .proc_handler = proc_dointvec_minmax, > .extra1 = SYSCTL_ONE, > }, > - { } > }; > > static int __init init_fs_namespace_sysctls(void) > diff --git a/fs/nfs/nfs4sysctl.c b/fs/nfs/nfs4sysctl.c > index e776200e9a11..886a7c4c60b3 100644 > --- a/fs/nfs/nfs4sysctl.c > +++ b/fs/nfs/nfs4sysctl.c > @@ -34,7 +34,6 @@ static struct ctl_table nfs4_cb_sysctls[] = { > .mode = 0644, > .proc_handler = proc_dointvec, > }, > - { } > }; > > int nfs4_register_sysctl(void) > diff --git a/fs/nfs/sysctl.c b/fs/nfs/sysctl.c > index f39e2089bc4c..e645be1a3381 100644 > --- a/fs/nfs/sysctl.c > +++ b/fs/nfs/sysctl.c > @@ -29,7 +29,6 @@ static struct ctl_table nfs_cb_sysctls[] = { > .mode = 0644, > .proc_handler = proc_dointvec, > }, > - { } > }; > > int nfs_register_sysctl(void) > diff --git a/fs/notify/dnotify/dnotify.c b/fs/notify/dnotify/dnotify.c > index ebdcc25df0f7..8151ed5ddefc 100644 > --- a/fs/notify/dnotify/dnotify.c > +++ b/fs/notify/dnotify/dnotify.c > @@ -29,7 +29,6 @@ static struct ctl_table dnotify_sysctls[] = { > .mode = 0644, > .proc_handler = proc_dointvec, > }, > - {} > }; > static void __init dnotify_sysctl_init(void) > { > diff --git a/fs/notify/fanotify/fanotify_user.c b/fs/notify/fanotify/fanotify_user.c > index f69c451018e3..80539839af0c 100644 > --- a/fs/notify/fanotify/fanotify_user.c > +++ b/fs/notify/fanotify/fanotify_user.c > @@ -86,7 +86,6 @@ static struct ctl_table fanotify_table[] = { > .proc_handler = proc_dointvec_minmax, > .extra1 = SYSCTL_ZERO > }, > - { } > }; > > static void __init fanotify_sysctls_init(void) > diff --git a/fs/notify/inotify/inotify_user.c b/fs/notify/inotify/inotify_user.c > index 1c4bfdab008d..3e222a271da6 100644 > --- a/fs/notify/inotify/inotify_user.c > +++ b/fs/notify/inotify/inotify_user.c > @@ -85,7 +85,6 @@ static struct ctl_table inotify_table[] = { > .proc_handler = proc_dointvec_minmax, > .extra1 = SYSCTL_ZERO > }, > - { } > }; > > static void __init inotify_sysctls_init(void) > diff --git a/fs/ntfs/sysctl.c b/fs/ntfs/sysctl.c > index 174fe536a1c0..4e980170d86a 100644 > --- a/fs/ntfs/sysctl.c > +++ b/fs/ntfs/sysctl.c > @@ -28,7 +28,6 @@ static struct ctl_table ntfs_sysctls[] = { > .mode = 0644, /* Mode, proc handler. */ > .proc_handler = proc_dointvec > }, > - {} > }; > > /* Storage for the sysctls header. */ > diff --git a/fs/ocfs2/stackglue.c b/fs/ocfs2/stackglue.c > index a8d5ca98fa57..20aa37b67cfb 100644 > --- a/fs/ocfs2/stackglue.c > +++ b/fs/ocfs2/stackglue.c > @@ -658,7 +658,6 @@ static struct ctl_table ocfs2_nm_table[] = { > .mode = 0644, > .proc_handler = proc_dostring, > }, > - { } > }; > > static struct ctl_table_header *ocfs2_table_header; > diff --git a/fs/pipe.c b/fs/pipe.c > index 6c1a9b1db907..6bc1c4ae81d5 100644 > --- a/fs/pipe.c > +++ b/fs/pipe.c > @@ -1492,7 +1492,6 @@ static struct ctl_table fs_pipe_sysctls[] = { > .mode = 0644, > .proc_handler = proc_doulongvec_minmax, > }, > - { } > }; > #endif > > diff --git a/fs/proc/proc_sysctl.c b/fs/proc/proc_sysctl.c > index de484195f49f..4e06c4d69906 100644 > --- a/fs/proc/proc_sysctl.c > +++ b/fs/proc/proc_sysctl.c > @@ -71,7 +71,6 @@ static struct ctl_table root_table[] = { > .procname = "", > .mode = S_IFDIR|S_IRUGO|S_IXUGO, > }, > - { } > }; > static struct ctl_table_root sysctl_table_root = { > .default_set.dir.header = { > diff --git a/fs/quota/dquot.c b/fs/quota/dquot.c > index 9e72bfe8bbad..69b03e13e6f2 100644 > --- a/fs/quota/dquot.c > +++ b/fs/quota/dquot.c > @@ -2949,7 +2949,6 @@ static struct ctl_table fs_dqstats_table[] = { > .proc_handler = proc_dointvec, > }, > #endif > - { }, > }; > > static int __init dquot_init(void) > diff --git a/fs/sysctls.c b/fs/sysctls.c > index 76a0aee8c229..8dbde9a802fa 100644 > --- a/fs/sysctls.c > +++ b/fs/sysctls.c > @@ -26,7 +26,6 @@ static struct ctl_table fs_shared_sysctls[] = { > .extra1 = SYSCTL_ZERO, > .extra2 = SYSCTL_MAXOLDUID, > }, > - { } > }; > > static int __init init_fs_sysctls(void) > diff --git a/fs/userfaultfd.c b/fs/userfaultfd.c > index 56eaae9dac1a..7668285779c1 100644 > --- a/fs/userfaultfd.c > +++ b/fs/userfaultfd.c > @@ -45,7 +45,6 @@ static struct ctl_table vm_userfaultfd_table[] = { > .extra1 = SYSCTL_ZERO, > .extra2 = SYSCTL_ONE, > }, > - { } > }; > #endif > > diff --git a/fs/verity/fsverity_private.h b/fs/verity/fsverity_private.h > index d071a6e32581..8191bf7ad706 100644 > --- a/fs/verity/fsverity_private.h > +++ b/fs/verity/fsverity_private.h > @@ -122,8 +122,8 @@ void __init fsverity_init_info_cache(void); > > /* signature.c */ > > -#ifdef CONFIG_FS_VERITY_BUILTIN_SIGNATURES > extern int fsverity_require_signatures; > +#ifdef CONFIG_FS_VERITY_BUILTIN_SIGNATURES > int fsverity_verify_signature(const struct fsverity_info *vi, > const u8 *signature, size_t sig_size); > > diff --git a/fs/verity/init.c b/fs/verity/init.c > index a29f062f6047..e31045dd4f6c 100644 > --- a/fs/verity/init.c > +++ b/fs/verity/init.c > @@ -13,7 +13,6 @@ > static struct ctl_table_header *fsverity_sysctl_header; > > static struct ctl_table fsverity_sysctl_table[] = { > -#ifdef CONFIG_FS_VERITY_BUILTIN_SIGNATURES > { > .procname = "require_signatures", > .data = &fsverity_require_signatures, > @@ -23,14 +22,17 @@ static struct ctl_table fsverity_sysctl_table[] = { > .extra1 = SYSCTL_ZERO, > .extra2 = SYSCTL_ONE, > }, > -#endif > - { } > }; > > static void __init fsverity_init_sysctl(void) > { > +#ifdef CONFIG_FS_VERITY_BUILTIN_SIGNATURES > fsverity_sysctl_header = register_sysctl("fs/verity", > fsverity_sysctl_table); > +#else > + fsverity_sysctl_header = register_sysctl_sz("fs/verity", > + fsverity_sysctl_table, 0); > +#endif > if (!fsverity_sysctl_header) > panic("fsverity sysctl registration failed"); > } > diff --git a/fs/xfs/xfs_sysctl.c b/fs/xfs/xfs_sysctl.c > index fade33735393..a191f6560f98 100644 > --- a/fs/xfs/xfs_sysctl.c > +++ b/fs/xfs/xfs_sysctl.c > @@ -206,8 +206,6 @@ static struct ctl_table xfs_table[] = { > .extra2 = &xfs_params.stats_clear.max > }, > #endif /* CONFIG_PROC_FS */ > - > - {} > }; > > int > > -- > 2.30.2 > -- Jan Kara SUSE Labs, CR