Thread (2 messages) 2 messages, 2 authors, 2023-08-25

Re: [PATCH -next v2] rv/include: set variable 'da_mon_##name' to static

From: Daniel Bristot de Oliveira <bristot@kernel.org>
Date: 2023-08-25 13:26:58
Also in: lkml

On 8/23/23 04:00, Yu Liao wrote:
gcc with W=1 reports
kernel/trace/rv/monitors/wip/wip.c:20:1: sparse: sparse: symbol 'da_mon_wip' was not declared. Should it be static?

The per-cpu variable 'da_mon_##name' is only used in its defining file, so
it should be static.

Reported-by: kernel test robot <redacted>
Closes: https://lore.kernel.org/oe-kbuild-all/202307280030.7EjUG9gR-lkp@intel.com/ (local)
Signed-off-by: Yu Liao <redacted>
Acked-by: Daniel Bristot de Oliveira <bristot@kernel.org>

Thanks!
-- Daniel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help