Skip to content

Commit

Permalink
initrd: remove the now superfluous sentinel element from ctl_table array
Browse files Browse the repository at this point in the history
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 sentinel from kern_do_mounts_initrd_table.

Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Joel Granados <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
  • Loading branch information
Joelgranados authored and akpm00 committed Apr 26, 2024
1 parent 56fd616 commit 5f08383
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion init/do_mounts_initrd.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ static struct ctl_table kern_do_mounts_initrd_table[] = {
.mode = 0644,
.proc_handler = proc_dointvec,
},
{ }
};

static __init int kernel_do_mounts_initrd_sysctls_init(void)
Expand Down

0 comments on commit 5f08383

Please sign in to comment.