arch/s390/kernel/aef.c:79:1: sparse: sparse: symbol 'bin_attr_qmc' was not declared. Should it be static?
kernel test robot
build bottree: https://git.kernel.org/pub/scm/linux/kernel/git/kvms390/linux.git sae head: 2abfa741008fd96c3684c316a2f5f37d3bb7bd8b commit: 6f0139f1ab685b923aadef3e1653c6f3b2f963c0 [28/28] s390: Report AEF features to sysfs config: s390-randconfig-r2307-20261106 (https://download.01.org/0day-ci/archive/20261106/[email protected]/config) compiler: clang version 17.0.6 (https://github.com/llvm/llvm-project 6009708b4367171ccdbf4b5905cb6a803753fe18) sparse: v0.6.5-rc1-21-g84ec0658 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261106/[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 >>)
>> arch/s390/kernel/aef.c:79:1: sparse: sparse: symbol 'bin_attr_qmc' was not declared. Should it be static? >> arch/s390/kernel/aef.c:89:1: sparse: sparse: symbol 'bin_attr_save_area' was not declared. Should it be static?
vim +/bin_attr_qmc +79 arch/s390/kernel/aef.c
78
> 79 BIN_ATTR_RO(qmc, sizeof(qmc));
80
81 static ssize_t save_area_read(struct file *filp, struct kobject *kobj,
82 const struct bin_attribute *attr, char *buf,
83 loff_t off, size_t count)
84 {
85 return memory_read_from_buffer(buf, count, &off, &save_area,
86 sizeof(save_area));
87 }
88
> 89 BIN_ATTR_RO(save_area, sizeof(save_area));
90 --
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki