Skip to content

Commit 66f20b1

Browse files
committed
ftrace: Remove the now superfluous sentinel elements 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 elements from ftrace_sysctls and user_event_sysctls Acked-by: Masami Hiramatsu (Google) <[email protected]> Acked-by: Steven Rostedt (Google) <[email protected]> Signed-off-by: Joel Granados <[email protected]>
1 parent 7fd9c63 commit 66f20b1

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

kernel/trace/ftrace.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8270,7 +8270,6 @@ static struct ctl_table ftrace_sysctls[] = {
82708270
.mode = 0644,
82718271
.proc_handler = ftrace_enable_sysctl,
82728272
},
8273-
{}
82748273
};
82758274

82768275
static int __init ftrace_sysctl_init(void)

kernel/trace/trace_events_user.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2833,7 +2833,6 @@ static struct ctl_table user_event_sysctls[] = {
28332833
.mode = 0644,
28342834
.proc_handler = set_max_user_events_sysctl,
28352835
},
2836-
{}
28372836
};
28382837

28392838
static int __init trace_events_user_init(void)

0 commit comments

Comments
 (0)