Skip to contentSkip to conversation

mm/gcma_sysfs.c:11:16: sparse: sparse: symbol 'vendor_mm_kobj' was not declared. Should it be static?

PATCH kernel test robot 1 participant 1 message Nov 26

lore
Share & tools
lore

kernel test robot

author build bot
#0 lore raw
tree:   https://android.googlesource.com/kernel/common android17-6.18-2026-06
head:   067fb13199f981ad630ad46001077bb8e721a155
commit: 3f3d84c99a6730553294bbe20941ea977fb9c437 [1/1] ANDROID: mm: add GCMA sysfs stats
config: arm-randconfig-r2302-20261126 (https://download.01.org/0day-ci/archive/20261126/[email protected]/config)
compiler: clang version 24.0.0git (https://github.com/llvm/llvm-project a2bea097c8bf336f31f45e88e96f20d88e37ff5a)
sparse: v0.6.5-rc1-21-g84ec0658
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261126/[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 >>)

>> mm/gcma_sysfs.c:11:16: sparse: sparse: symbol 'vendor_mm_kobj' was not declared. Should it be static?

vim +/vendor_mm_kobj +11 mm/gcma_sysfs.c

    10	
  > 11	struct kobject *vendor_mm_kobj;
    12	static struct kobject gcma_kobj;
    13	
Signature · 2 lines
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki