[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202208210358.6HH3OrVs-lkp@intel.com>
Date: Sun, 21 Aug 2022 03:37:03 +0800
From: kernel test robot <lkp@...el.com>
To: Daniel Bristot de Oliveira <bristot@...nel.org>
Cc: kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
"Steven Rostedt (Google)" <rostedt@...dmis.org>
Subject: kernel/trace/rv/monitors/wwnr/wwnr.c:18:19: sparse: sparse: symbol
'rv_wwnr' was not declared. Should it be static?
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: cc1807b9158a909ffe829a5e222be756c57c9a90
commit: ccc319dcb450d57b7befe924453d06804d83ba73 rv/monitor: Add the wwnr monitor
date: 3 weeks ago
config: sparc64-randconfig-s041-20220820 (https://download.01.org/0day-ci/archive/20220821/202208210358.6HH3OrVs-lkp@intel.com/config)
compiler: sparc64-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/torvalds/linux.git/commit/?id=ccc319dcb450d57b7befe924453d06804d83ba73
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout ccc319dcb450d57b7befe924453d06804d83ba73
# 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=sparc64 SHELL=/bin/bash kernel/trace/rv/
If you fix the issue, kindly add following tag where applicable
Reported-by: kernel test robot <lkp@...el.com>
sparse warnings: (new ones prefixed by >>)
kernel/trace/rv/monitors/wwnr/wwnr.c: note: in included file:
kernel/trace/rv/monitors/wwnr/wwnr.h:30:23: sparse: sparse: symbol 'automaton_wwnr' was not declared. Should it be static?
>> kernel/trace/rv/monitors/wwnr/wwnr.c:18:19: sparse: sparse: symbol 'rv_wwnr' was not declared. Should it be static?
vim +/rv_wwnr +18 kernel/trace/rv/monitors/wwnr/wwnr.c
17
> 18 struct rv_monitor rv_wwnr;
19 DECLARE_DA_MON_PER_TASK(wwnr, unsigned char);
20
--
0-DAY CI Kernel Test Service
https://01.org/lkp
Powered by blists - more mailing lists