Arnd Bergmann
91580ea48b
tracing: hide unused ftrace_event_id_fops
...
[ Upstream commit 5281ec83454d70d98b71f1836fb16512566c01cd ]
When CONFIG_PERF_EVENTS, a 'make W=1' build produces a warning about the
unused ftrace_event_id_fops variable:
kernel/trace/trace_events.c:2155:37: error: 'ftrace_event_id_fops' defined but not used [-Werror=unused-const-variable=]
2155 | static const struct file_operations ftrace_event_id_fops = {
Hide this in the same #ifdef as the reference to it.
Link: https://lore.kernel.org/linux-trace-kernel/20240403080702.3509288-7-arnd@kernel.org
Cc: Masami Hiramatsu <mhiramat@kernel.org>
Cc: Oleg Nesterov <oleg@redhat.com>
Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Cc: Zheng Yejian <zhengyejian1@huawei.com>
Cc: Kees Cook <keescook@chromium.org>
Cc: Ajay Kaher <akaher@vmware.com>
Cc: Jinjie Ruan <ruanjinjie@huawei.com>
Cc: Clément Léger <cleger@rivosinc.com>
Cc: Dan Carpenter <dan.carpenter@linaro.org>
Cc: "Tzvetomir Stoyanov (VMware)" <tz.stoyanov@gmail.com>
Fixes: 620a30e97feb ("tracing: Don't pass file_operations array to event_create_dir()")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-04-17 11:18:26 +02:00
..
2022-09-26 18:10:51 -04:00
2023-03-10 09:33:46 +01:00
2024-02-23 09:12:51 +01:00
2022-06-03 14:05:34 -07:00
2023-10-25 12:03:12 +02:00
2023-07-23 13:49:44 +02:00
2023-01-07 11:11:48 +01:00
2023-04-06 12:10:41 +02:00
2022-07-30 14:01:28 -04:00
2022-04-26 17:58:50 -04:00
2023-12-13 18:39:17 +01:00
2024-04-17 11:18:22 +02:00
2024-01-01 12:39:07 +00:00
2022-09-26 13:01:09 -04:00
2022-09-26 13:01:09 -04:00
2022-05-26 21:13:00 -04:00
2022-11-23 19:07:12 -05:00
2023-07-23 13:49:24 +02:00
2022-08-21 15:56:07 -04:00
2023-11-28 17:07:23 +00:00
2024-01-20 11:50:07 +01:00
2023-09-23 11:11:11 +02:00
2023-11-28 17:07:13 +00:00
2024-02-23 09:12:32 +01:00
2023-07-23 13:49:47 +02:00
2024-04-17 11:18:26 +02:00
2023-02-14 19:11:54 +01:00
2023-09-13 09:42:57 +02:00
2023-08-30 16:11:00 +02:00
2024-01-05 15:18:40 +01:00
2023-06-09 10:34:24 +02:00
2024-01-20 11:50:07 +01:00
2022-09-06 22:26:00 -04:00
2023-08-03 10:23:55 +02:00
2023-08-03 10:23:55 +02:00
2023-08-03 10:23:55 +02:00
2023-10-25 12:03:16 +02:00
2022-05-26 21:12:52 -04:00
2022-05-12 00:37:11 +02:00
2023-08-30 16:11:00 +02:00
2022-05-25 16:57:37 -04:00
2023-08-03 10:23:55 +02:00
2022-11-17 20:21:06 -05:00
2023-09-13 09:42:30 +02:00
2024-04-03 15:19:40 +02:00
2024-01-20 11:50:07 +01:00
2024-01-31 16:17:04 -08:00