Skip to contentSkip to conversation

fs/erofs/decompressor_crypto.c:64:30: sparse: sparse: symbol 'z_erofs_crypto' was not declared. Should it be static?

DISCUSSION kernel test robot 1 participant 1 message Dec 10, 2025

lore
Share & tools
lore

kernel test robot

author build bot
#0 lore raw
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   c9b47175e9131118e6f221cc8fb81397d62e7c91
commit: b4a29efc51461edf1a02e9da656d4480cabd24b0 erofs: support DEFLATE decompression by using Intel QAT
date:   7 months ago
config: s390-randconfig-r111-20251210 (https://download.01.org/0day-ci/archive/20251210/[email protected]/config)
compiler: clang version 18.1.8 (https://github.com/llvm/llvm-project 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251210/[email protected]/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
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/

sparse warnings: (new ones prefixed by >>)

>> fs/erofs/decompressor_crypto.c:64:30: sparse: sparse: symbol 'z_erofs_crypto' was not declared. Should it be static?

vim +/z_erofs_crypto +64 fs/erofs/decompressor_crypto.c

    63	
  > 64	struct z_erofs_crypto_engine *z_erofs_crypto[Z_EROFS_COMPRESSION_MAX] = {
    65		[Z_EROFS_COMPRESSION_LZ4] = (struct z_erofs_crypto_engine[]) {
    66			{},
    67		},
    68		[Z_EROFS_COMPRESSION_LZMA] = (struct z_erofs_crypto_engine[]) {
    69			{},
    70		},
    71		[Z_EROFS_COMPRESSION_DEFLATE] = (struct z_erofs_crypto_engine[]) {
    72			{ .crypto_name = "qat_deflate", },
    73			{},
    74		},
    75		[Z_EROFS_COMPRESSION_ZSTD] = (struct z_erofs_crypto_engine[]) {
    76			{},
    77		},
    78	};
    79	static DECLARE_RWSEM(z_erofs_crypto_rwsem);
    80	
Signature · 2 lines
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki