kernel misc: Remove the now superfluous sentinel elements from ctl_table array
authorJoel Granados <j.granados@samsung.com>
Tue, 27 Jun 2023 13:30:19 +0000 (15:30 +0200)
committerJoel Granados <j.granados@samsung.com>
Wed, 24 Apr 2024 07:43:53 +0000 (09:43 +0200)
commit11a921909fea230cf7afcd6842a9452f3720b61b
tree2b641868896db98620558b85fcc6891a456385f3
parent4cece764965020c22cff7665b18a012006359095
kernel misc: 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 the sentinel from ctl_table arrays. Reduce by one the values used
to compare the size of the adjusted arrays.

Signed-off-by: Joel Granados <j.granados@samsung.com>
15 files changed:
kernel/acct.c
kernel/exit.c
kernel/hung_task.c
kernel/kexec_core.c
kernel/latencytop.c
kernel/panic.c
kernel/pid_namespace.c
kernel/pid_sysctl.h
kernel/reboot.c
kernel/signal.c
kernel/stackleak.c
kernel/sysctl.c
kernel/ucount.c
kernel/utsname_sysctl.c
kernel/watchdog.c