[rt-devel:linux-6.0.y-rt-rebase 23/59] kernel/softirq.c:641:1: sparse: sparse: symbol '__pcpu_scope_pending_timer_softirq' was not declared. Should it be static?

From: kernel test robot
Date: Fri Aug 26 2022 - 01:51:58 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-rt-devel.git linux-6.0.y-rt-rebase
head: 1d8c2694d3f649c97636d991dca099bd86f63f97
commit: 6b4c722d9a8c4017626b41c4321539a74c62b6ad [23/59] tick: Fix timer storm since introduction of timersd
config: alpha-randconfig-s051-20220824 (https://download.01.org/0day-ci/archive/20220826/202208261333.gsZk17N6-lkp@xxxxxxxxx/config)
compiler: alpha-linux-gcc (GCC) 12.1.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.4-39-gce1a6720-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-rt-devel.git/commit/?id=6b4c722d9a8c4017626b41c4321539a74c62b6ad
git remote add rt-devel https://git.kernel.org/pub/scm/linux/kernel/git/rt/linux-rt-devel.git
git fetch --no-tags rt-devel linux-6.0.y-rt-rebase
git checkout 6b4c722d9a8c4017626b41c4321539a74c62b6ad
# save the config file
mkdir build_dir && cp config build_dir/.config
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=alpha SHELL=/bin/bash

If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@xxxxxxxxx>

sparse warnings: (new ones prefixed by >>)
kernel/softirq.c:640:1: sparse: sparse: symbol '__pcpu_scope_timersd' was not declared. Should it be static?
>> kernel/softirq.c:641:1: sparse: sparse: symbol '__pcpu_scope_pending_timer_softirq' was not declared. Should it be static?

vim +/__pcpu_scope_pending_timer_softirq +641 kernel/softirq.c

639
640 DEFINE_PER_CPU(struct task_struct *, timersd);
> 641 DEFINE_PER_CPU(unsigned long, pending_timer_softirq);
642

--
0-DAY CI Kernel Test Service
https://01.org/lkp