fs/fuse/dir.c:38:21: sparse: sparse: symbol 'dentry_tree_work' was not declared. Should it be static?
From: kernel test robot
Date: Fri May 08 2026 - 07:50:37 EST
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 917719c412c48687d4a176965d1fa35320ec457c
commit: ab84ad5973869a660ca3ad0c54a2b84d975d47c4 fuse: new work queue to periodically invalidate expired dentries
date: 6 months ago
config: powerpc-randconfig-r122-20260508 (https://download.01.org/0day-ci/archive/20260508/202605081928.WWMrMNOu-lkp@xxxxxxxxx/config)
compiler: powerpc-linux-gcc (GCC) 8.5.0
sparse: v0.6.5-rc1
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260508/202605081928.WWMrMNOu-lkp@xxxxxxxxx/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Fixes: ab84ad597386 ("fuse: new work queue to periodically invalidate expired dentries")
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202605081928.WWMrMNOu-lkp@xxxxxxxxx/
sparse warnings: (new ones prefixed by >>)
>> fs/fuse/dir.c:38:21: sparse: sparse: symbol 'dentry_tree_work' was not declared. Should it be static?
vim +/dentry_tree_work +38 fs/fuse/dir.c
34
35 #define HASH_BITS 5
36 #define HASH_SIZE (1 << HASH_BITS)
37 static struct dentry_bucket dentry_hash[HASH_SIZE];
> 38 struct delayed_work dentry_tree_work;
39
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki