Re: [PATCH] tracing/ring-buffer: hide unused last_boot_fops

2024-07-19 Thread Steven Rostedt
On Fri, 19 Jul 2024 12:26:33 +0200 Arnd Bergmann wrote: > From: Arnd Bergmann > > This variable is used only in an #ifdef, which causes a W=1 warning > with some compilers: > > kernel/trace/trace.c:7570:37: error: 'last_boot_fops' defined but not used > [-Werror=unused-const-variable=] > 757

[PATCH] tracing/ring-buffer: hide unused last_boot_fops

2024-07-19 Thread Arnd Bergmann
From: Arnd Bergmann This variable is used only in an #ifdef, which causes a W=1 warning with some compilers: kernel/trace/trace.c:7570:37: error: 'last_boot_fops' defined but not used [-Werror=unused-const-variable=] 7570 | static const struct file_operations last_boot_fops = { Guard this one