Arnd Bergmann
e3e1e80b69
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:19:33 +02:00
..
2023-04-28 16:11:26 -07:00
2023-02-21 09:23:22 -07:00
2024-04-10 16:36:06 +02:00
2023-07-12 12:06:04 -04:00
2023-10-17 10:22:42 +09:00
2023-07-12 12:06:04 -04:00
2024-02-23 09:25:17 +01:00
2023-06-30 10:44:53 -07:00
2023-03-19 12:20:48 -04:00
2023-08-23 09:39:45 +09:00
2023-12-13 18:45:19 +01:00
2024-04-17 11:19:25 +02:00
2024-01-01 12:42:45 +00:00
2023-07-05 10:30:49 -04:00
2024-02-23 09:25:05 +01:00
2023-08-23 09:40:16 +09:00
2023-07-30 18:11:44 -04:00
2023-08-23 09:39:15 +09:00
2023-11-08 11:56:21 +01:00
2024-01-20 11:51:43 +01:00
2023-09-07 16:38:54 -04:00
2024-02-23 09:25:05 +01:00
2024-02-23 09:24:54 +01:00
2023-09-30 16:25:41 -04:00
2024-04-17 11:19:33 +02:00
2023-07-30 18:11:44 -04:00
2023-11-28 17:20:13 +00:00
2023-06-20 18:38:37 -04:00
2023-09-01 21:00:00 -04:00
2023-08-17 13:49:37 -04:00
2023-07-12 12:06:04 -04:00
2023-11-20 11:59:38 +01:00
2024-02-23 09:25:05 +01:00
2024-01-20 11:51:43 +01:00
2023-03-29 06:52:08 -04:00
2023-01-31 15:01:46 +01:00
2023-07-14 17:04:58 +09:00
2023-07-14 17:04:58 +09:00
2024-02-23 09:25:05 +01:00
2024-02-23 09:25:05 +01:00
2023-08-17 13:49:37 -04:00
2023-05-28 21:15:46 -04:00
2023-07-28 19:59:04 -04:00
2023-01-25 10:31:24 -05:00
2023-08-01 10:53:28 -07:00
2023-09-02 11:10:50 -07:00
2024-04-03 15:28:41 +02:00
2024-02-23 09:25:19 +01:00
2024-01-31 16:19:01 -08:00
2023-07-23 11:08:14 -04:00