[dhowells-fs:fscache-iter-2 42/75] fs/fscache/cookie.c:34:14: sparse: sparse: symbol 'fscache_lru_cookie_timeout' was not declared. Should it be static?
From: kernel test robot
Date: Sat Sep 11 2021 - 02:47:02 EST
tree: https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git fscache-iter-2
head: 7c7521adffeb04466a42e8e1956353b9d9038d02
commit: 4bd5274decc61468104b84b1c1bc72817700e63b [42/75] cachefiles: Automatically close a file that's not in use after a while
config: powerpc64-randconfig-s032-20210910 (attached as .config)
compiler: powerpc-linux-gcc (GCC) 11.2.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-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git/commit/?id=4bd5274decc61468104b84b1c1bc72817700e63b
git remote add dhowells-fs https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/linux-fs.git
git fetch --no-tags dhowells-fs fscache-iter-2
git checkout 4bd5274decc61468104b84b1c1bc72817700e63b
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=powerpc SHELL=/bin/bash fs/fscache/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>
sparse warnings: (new ones prefixed by >>)
>> fs/fscache/cookie.c:34:14: sparse: sparse: symbol 'fscache_lru_cookie_timeout' was not declared. Should it be static?
vim +/fscache_lru_cookie_timeout +34 fs/fscache/cookie.c
24
25 #define fscache_cookie_hash_shift 15
26 static struct hlist_bl_head fscache_cookie_hash[1 << fscache_cookie_hash_shift];
27 static LIST_HEAD(fscache_cookies);
28 static DEFINE_RWLOCK(fscache_cookies_lock);
29 static LIST_HEAD(fscache_cookie_lru);
30 static DEFINE_SPINLOCK(fscache_cookie_lru_lock);
31 static DEFINE_TIMER(fscache_cookie_lru_timer, fscache_cookie_lru_timed_out);
32 static DECLARE_WORK(fscache_cookie_lru_work, fscache_cookie_lru_worker);
33 static const char fscache_cookie_stages[FSCACHE_COOKIE_STAGE__NR] = "-LCAIFMWRD";
> 34 unsigned int fscache_lru_cookie_timeout = 10 * HZ;
35
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx
Attachment:
.config.gz
Description: application/gzip