diff options
author | Joel Granados <j.granados@samsung.com> | 2023-10-02 13:30:37 +0200 |
---|---|---|
committer | Luis Chamberlain <mcgrof@kernel.org> | 2023-10-10 15:22:02 -0700 |
commit | de8a660b03a35c76b91a03421057833d29973877 (patch) | |
tree | 27d3aeca0a4ae5e4fe04b5fcc83cc91f4f0800fb /arch/arm/kernel | |
parent | fdd9da76e2dec07de294f040bec3787f296c7c5d (diff) | |
download | linux-stable-de8a660b03a35c76b91a03421057833d29973877.tar.gz linux-stable-de8a660b03a35c76b91a03421057833d29973877.tar.bz2 linux-stable-de8a660b03a35c76b91a03421057833d29973877.zip |
arm: Remove now superfluous sentinel elem 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/)
Removed the sentinel as well as the explicit size from ctl_isa_vars. The
size is redundant as the initialization sets it. Changed
insn_emulation->sysctl from a 2 element array of struct ctl_table to a
simple struct. This has no consequence for the sysctl registration as it
is forwarded as a pointer. Removed sentinel from sve_defatul_vl_table,
sme_default_vl_table, tagged_addr_sysctl_table and
armv8_pmu_sysctl_table.
This removal is safe because register_sysctl_sz and register_sysctl use
the 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>
Diffstat (limited to 'arch/arm/kernel')
-rw-r--r-- | arch/arm/kernel/isa.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/kernel/isa.c b/arch/arm/kernel/isa.c index 20218876bef2..905b1b191546 100644 --- a/arch/arm/kernel/isa.c +++ b/arch/arm/kernel/isa.c @@ -16,7 +16,7 @@ static unsigned int isa_membase, isa_portbase, isa_portshift; -static struct ctl_table ctl_isa_vars[4] = { +static struct ctl_table ctl_isa_vars[] = { { .procname = "membase", .data = &isa_membase, @@ -35,7 +35,7 @@ static struct ctl_table ctl_isa_vars[4] = { .maxlen = sizeof(isa_portshift), .mode = 0444, .proc_handler = proc_dointvec, - }, {} + }, }; static struct ctl_table_header *isa_sysctl_header; |