Skip to content

Commit ea9738d

Browse files
Joelgranadosmcgrof
authored andcommitted
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%[email protected]/) 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 <[email protected]> Signed-off-by: Luis Chamberlain <[email protected]>
1 parent f6ca506 commit ea9738d

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

arch/powerpc/kernel/idle.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,6 @@ static struct ctl_table powersave_nap_ctl_table[] = {
105105
.mode = 0644,
106106
.proc_handler = proc_dointvec,
107107
},
108-
{}
109108
};
110109

111110
static int __init

arch/powerpc/platforms/pseries/mobility.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ static struct ctl_table nmi_wd_lpm_factor_ctl_table[] = {
6161
.mode = 0644,
6262
.proc_handler = proc_douintvec_minmax,
6363
},
64-
{}
6564
};
6665

6766
static int __init register_nmi_wd_lpm_factor_sysctl(void)

0 commit comments

Comments
 (0)