summaryrefslogtreecommitdiffstats
path: root/arch/s390/mm/pgalloc.c
diff options
context:
space:
mode:
authorJoel Granados <j.granados@samsung.com>2023-10-02 13:30:36 +0200
committerLuis Chamberlain <mcgrof@kernel.org>2023-10-10 15:22:02 -0700
commitfdd9da76e2dec07de294f040bec3787f296c7c5d (patch)
treeb4fd6894be67d78e9cbfab0d3e2f3b9e25211841 /arch/s390/mm/pgalloc.c
parentce9ecca0238b140b88f43859b211c9fdfd8e5b70 (diff)
downloadlinux-fdd9da76e2dec07de294f040bec3787f296c7c5d.tar.gz
linux-fdd9da76e2dec07de294f040bec3787f296c7c5d.tar.bz2
linux-fdd9da76e2dec07de294f040bec3787f296c7c5d.zip
S390: 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/) Remove the sentinel element from appldata_table, s390dbf_table, topology_ctl_table, cmm_table and page_table_sysctl. Reduced the memory allocation in appldata_register_ops by 1 effectively removing the sentinel from ops->ctl_table. This removal is safe because register_sysctl_sz and register_sysctl use the array size in addition to checking for the sentinel. Tested-by: Alexander Gordeev <agordeev@linux.ibm.com> Acked-by: Heiko Carstens <hca@linux.ibm.com> Signed-off-by: Joel Granados <j.granados@samsung.com> Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
Diffstat (limited to 'arch/s390/mm/pgalloc.c')
-rw-r--r--arch/s390/mm/pgalloc.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/s390/mm/pgalloc.c b/arch/s390/mm/pgalloc.c
index 07fc660a24aa..75e1039f2ec5 100644
--- a/arch/s390/mm/pgalloc.c
+++ b/arch/s390/mm/pgalloc.c
@@ -30,7 +30,6 @@ static struct ctl_table page_table_sysctl[] = {
.extra1 = SYSCTL_ZERO,
.extra2 = SYSCTL_ONE,
},
- { }
};
static int __init page_table_register_sysctl(void)