rv: Set variable 'da_mon_##name' to static
authorYu Liao <liaoyu15@huawei.com>
Wed, 23 Aug 2023 02:00:51 +0000 (10:00 +0800)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Sat, 2 Sep 2023 01:00:00 +0000 (21:00 -0400)
commit0e19543b7b0cbc47fd9cac01cd7738f14f381c70
tree68d80e0d59f5f505564ab46298ed141bfe09c7a0
parent34232fcfe9a383bea802af682baae5c99f22376c
rv: Set variable 'da_mon_##name' to static

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.

Link: https://lore.kernel.org/linux-trace-kernel/20230823020051.3184953-1-liaoyu15@huawei.com
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202307280030.7EjUG9gR-lkp@intel.com/
Signed-off-by: Yu Liao <liaoyu15@huawei.com>
Acked-by: Daniel Bristot de Oliveira <bristot@kernel.org>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
include/rv/da_monitor.h