Skip to content

Commit 029c45b

Browse files
Joelgranadosakpm00
authored andcommitted
ipc: remove the now superfluous sentinel element 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%[email protected]/) Remove the sentinels from ipc_sysctls and mq_sysctls Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Joel Granados <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent 5f08383 commit 029c45b

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

ipc/ipc_sysctl.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,6 @@ static struct ctl_table ipc_sysctls[] = {
178178
.extra2 = SYSCTL_INT_MAX,
179179
},
180180
#endif
181-
{}
182181
};
183182

184183
static struct ctl_table_set *set_lookup(struct ctl_table_root *root)

ipc/mq_sysctl.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ static struct ctl_table mq_sysctls[] = {
6464
.extra1 = &msg_maxsize_limit_min,
6565
.extra2 = &msg_maxsize_limit_max,
6666
},
67-
{}
6867
};
6968

7069
static struct ctl_table_set *set_lookup(struct ctl_table_root *root)

0 commit comments

Comments
 (0)