Skip to content

Commit f6ca506

Browse files
Joelgranadosmcgrof
authored andcommitted
riscv: Remove 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 sentinel element from riscv_v_default_vstate_table. This removal is safe because register_sysctl implicitly uses ARRAY_SIZE() in addition to checking for the sentinel. Signed-off-by: Joel Granados <[email protected]> Signed-off-by: Luis Chamberlain <[email protected]>
1 parent ecd5d66 commit f6ca506

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

arch/riscv/kernel/vector.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,6 @@ static struct ctl_table riscv_v_default_vstate_table[] = {
255255
.mode = 0644,
256256
.proc_handler = proc_dobool,
257257
},
258-
{ }
259258
};
260259

261260
static int __init riscv_v_sysctl_init(void)

0 commit comments

Comments
 (0)