diff options
author | Joel Granados <j.granados@samsung.com> | 2023-11-21 12:35:12 +0100 |
---|---|---|
committer | Luis Chamberlain <mcgrof@kernel.org> | 2023-12-28 04:57:57 -0800 |
commit | 9d5b9475356635d018b4d22f7e58fce32e2e89a7 (patch) | |
tree | 7ecc5eb8892bd0d372b87dd2ef4a745bdba24355 /fs/verity | |
parent | e640fc5b7b241a0871fbbd94fa9a8a83ecd84391 (diff) | |
download | linux-9d5b9475356635d018b4d22f7e58fce32e2e89a7.tar.gz linux-9d5b9475356635d018b4d22f7e58fce32e2e89a7.tar.bz2 linux-9d5b9475356635d018b4d22f7e58fce32e2e89a7.zip |
fs: Remove the now superfluous sentinel elements from ctl_table array
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 <j.granados@samsung.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
Acked-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
Diffstat (limited to 'fs/verity')
-rw-r--r-- | fs/verity/init.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/fs/verity/init.c b/fs/verity/init.c index a29f062f6047..b64a76b9ac36 100644 --- a/fs/verity/init.c +++ b/fs/verity/init.c @@ -24,7 +24,6 @@ static struct ctl_table fsverity_sysctl_table[] = { .extra2 = SYSCTL_ONE, }, #endif - { } }; static void __init fsverity_init_sysctl(void) |