tree: https://gitee.com/openeuler/kernel.git OLK-5.10
head: ed8467e701e8f5ed9f2b39cf55710a156fc2593f
commit: 6de602b09314b731285d7807eb912ac04dbacfb8 [2668/2668] erofs: register fscache volume
config: x86_64-randconfig-121-20250108 (https://download.01.org/0day-ci/archive/20250109/202501091137.E9nwi2KG-lkp@…)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250109/202501091137.E9nwi2KG-lkp@…)
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
| Reported-by: kernel test robot <lkp(a)intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202501091137.E9nwi2KG-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
fs/erofs/fscache.c:7:22: sparse: sparse: symbol 'erofs_fscache_netfs' was not declared. Should it be static?
>> fs/erofs/fscache.c:22:33: sparse: sparse: symbol 'erofs_fscache_super_index_def' was not declared. Should it be static?
vim +/erofs_fscache_super_index_def +22 fs/erofs/fscache.c
6
> 7 struct fscache_netfs erofs_fscache_netfs = {
8 .name = "erofs",
9 .version = 0,
10 };
11
12 int erofs_fscache_register(void)
13 {
14 return fscache_register_netfs(&erofs_fscache_netfs);
15 }
16
17 void erofs_fscache_unregister(void)
18 {
19 fscache_unregister_netfs(&erofs_fscache_netfs);
20 }
21
> 22 const struct fscache_cookie_def erofs_fscache_super_index_def = {
23 .name = "EROFS.super",
24 .type = FSCACHE_COOKIE_TYPE_INDEX,
25 .check_aux = NULL,
26 };
27
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki