Commit 11a92190 authored by Joel Granados's avatar Joel Granados
Browse files

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: default avatarJoel Granados <j.granados@samsung.com>
parent 4cece764
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -84,7 +84,6 @@ static struct ctl_table kern_acct_table[] = {
		.mode           = 0644,
		.proc_handler   = proc_dointvec,
	},
	{ }
};

static __init int kernel_acct_sysctls_init(void)
+0 −1
Original line number Diff line number Diff line
@@ -94,7 +94,6 @@ static struct ctl_table kern_exit_table[] = {
		.mode           = 0644,
		.proc_handler   = proc_douintvec,
	},
	{ }
};

static __init int kernel_exit_sysctls_init(void)
+0 −1
Original line number Diff line number Diff line
@@ -314,7 +314,6 @@ static struct ctl_table hung_task_sysctls[] = {
		.proc_handler	= proc_dointvec_minmax,
		.extra1		= SYSCTL_NEG_ONE,
	},
	{}
};

static void __init hung_task_sysctl_init(void)
+0 −1
Original line number Diff line number Diff line
@@ -948,7 +948,6 @@ static struct ctl_table kexec_core_sysctls[] = {
		.mode		= 0644,
		.proc_handler	= kexec_limit_handler,
	},
	{ }
};

static int __init kexec_core_sysctl_init(void)
+0 −1
Original line number Diff line number Diff line
@@ -85,7 +85,6 @@ static struct ctl_table latencytop_sysctl[] = {
		.mode       = 0644,
		.proc_handler   = sysctl_latencytop,
	},
	{}
};
#endif

Loading