LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [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?
@ 2021-09-11  6:36 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-09-11  6:36 UTC (permalink / raw)
  To: David Howells; +Cc: kbuild-all, linux-kernel

[-- Attachment #1: Type: text/plain, Size: 2284 bytes --]

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@intel.com>


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@lists.01.org

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 32894 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-09-11  6:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-11  6:36 [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? kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).