Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

powerpc: Remove now superfluous sentinel element from ctl_table arrays

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 powersave_nap_ctl_table and nmi_wd_lpm_factor_ctl_table.
This removal is safe because register_sysctl implicitly uses ARRAY_SIZE()
in addition to checking for the sentinel.

Signed-off-by: Joel Granados <j.granados@samsung.com>
Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>

authored by

Joel Granados and committed by
Luis Chamberlain
ea9738db f6ca506f

-2
-1
arch/powerpc/kernel/idle.c
··· 105 105 .mode = 0644, 106 106 .proc_handler = proc_dointvec, 107 107 }, 108 - {} 109 108 }; 110 109 111 110 static int __init
-1
arch/powerpc/platforms/pseries/mobility.c
··· 61 61 .mode = 0644, 62 62 .proc_handler = proc_douintvec_minmax, 63 63 }, 64 - {} 65 64 }; 66 65 67 66 static int __init register_nmi_wd_lpm_factor_sysctl(void)