Skip to content

Commit ecd5d66

Browse files
Joelgranadosmcgrof
authored andcommitted
x86/vdso: Remove now superfluous sentinel element 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%[email protected]/) Remove sentinel element from abi_table2. This removal is safe because register_sysctl implicitly uses ARRAY_SIZE() in addition to checking for the sentinel. Signed-off-by: Joel Granados <[email protected]> Signed-off-by: Luis Chamberlain <[email protected]>
1 parent 83e291d commit ecd5d66

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

arch/x86/entry/vdso/vdso32-setup.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,6 @@ static struct ctl_table abi_table2[] = {
6767
.extra1 = SYSCTL_ZERO,
6868
.extra2 = SYSCTL_ONE,
6969
},
70-
{}
7170
};
7271

7372
static __init int ia32_binfmt_init(void)

0 commit comments

Comments
 (0)