Skip to contentSkip to conversation

fs/hfsplus/inode.c:399:31: sparse: sparse: symbol 'hfsplus_symlink_inode_operations' was not declared. Should it be static?

PATCH kernel test robot 1 participant 1 message Jan 29

lore
Share & tools
lore

kernel test robot

author build bot
#0 lore raw
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/vdubeyko/hfs.git for-next
head:   aef5078471294e7a7a2d6b9da4988a6a3b7aff54
commit: aef5078471294e7a7a2d6b9da4988a6a3b7aff54 [10/10] hfsplus: fix generic/062 xfstests failure
config: s390-randconfig-r131-20260129 (https://download.01.org/0day-ci/archive/20260129/[email protected]/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260129/[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/hfsplus/inode.c:399:31: sparse: sparse: symbol 'hfsplus_symlink_inode_operations' was not declared. Should it be static?
>> fs/hfsplus/inode.c:406:31: sparse: sparse: symbol 'hfsplus_special_inode_operations' was not declared. Should it be static?

vim +/hfsplus_symlink_inode_operations +399 fs/hfsplus/inode.c

398

 > 399	const struct inode_operations hfsplus_symlink_inode_operations = {
   400		.get_link	= page_get_link,
   401		.setattr	= hfsplus_setattr,
   402		.getattr	= hfsplus_getattr,
   403		.listxattr	= hfsplus_listxattr,
   404	};
   405	
 > 406	const struct inode_operations hfsplus_special_inode_operations = {

407 .setattr = hfsplus_setattr,
408 .getattr = hfsplus_getattr,
409 .listxattr = hfsplus_listxattr,
410 };
411

Signature · 2 lines
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki