Skip to contentSkip to conversation

drivers/platform/x86/dell/alienware-wmi.c:521:1: sparse: sparse: symbol 'dev_attr_zone00' was not declared. Should it be static?

PATCH kernel test robot 1 participant 1 message Jan 14, 2025

lore
Share & tools
lore

kernel test robot

author build bot
#0 lore raw
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   dab2734f8e9ecba609d66d1dd087a392a7774c04
commit: 7c605f6460e80b393c7cc24b089afa876beadb48 [6470/8513] platform/x86: alienware-wmi: Improve rgb-zones group creation
config: i386-randconfig-063-20250114 (https://download.01.org/0day-ci/archive/20250114/[email protected]/config)
compiler: clang version 19.1.3 (https://github.com/llvm/llvm-project ab51eccf88f5321e7c60591c5546b254b6afab99)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250114/[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 >>)

>> drivers/platform/x86/dell/alienware-wmi.c:521:1: sparse: sparse: symbol 'dev_attr_zone00' was not declared. Should it be static?
>> drivers/platform/x86/dell/alienware-wmi.c:535:1: sparse: sparse: symbol 'dev_attr_zone01' was not declared. Should it be static?
>> drivers/platform/x86/dell/alienware-wmi.c:549:1: sparse: sparse: symbol 'dev_attr_zone02' was not declared. Should it be static?
>> drivers/platform/x86/dell/alienware-wmi.c:563:1: sparse: sparse: symbol 'dev_attr_zone03' was not declared. Should it be static?

vim +/dev_attr_zone00 +521 drivers/platform/x86/dell/alienware-wmi.c

520

 > 521	DEVICE_ATTR_RW(zone00);
   522	
   523	static ssize_t zone01_show(struct device *dev, struct device_attribute *attr,
   524				   char *buf)
   525	{
   526		return zone_show(dev, attr, buf, 1);
   527	}
   528	
   529	static ssize_t zone01_store(struct device *dev, struct device_attribute *attr,
   530				    const char *buf, size_t count)
   531	{
   532		return zone_store(dev, attr, buf, count, 1);
   533	}
   534	
 > 535	DEVICE_ATTR_RW(zone01);
   536	
   537	static ssize_t zone02_show(struct device *dev, struct device_attribute *attr,
   538				   char *buf)
   539	{
   540		return zone_show(dev, attr, buf, 2);
   541	}
   542	
   543	static ssize_t zone02_store(struct device *dev, struct device_attribute *attr,
   544				    const char *buf, size_t count)
   545	{
   546		return zone_store(dev, attr, buf, count, 2);
   547	}
   548	
 > 549	DEVICE_ATTR_RW(zone02);
   550	
   551	static ssize_t zone03_show(struct device *dev, struct device_attribute *attr,
   552				   char *buf)
   553	{
   554		return zone_show(dev, attr, buf, 3);
   555	}
   556	
   557	static ssize_t zone03_store(struct device *dev, struct device_attribute *attr,
   558				    const char *buf, size_t count)
   559	{
   560		return zone_store(dev, attr, buf, count, 3);
   561	}
   562	
 > 563	DEVICE_ATTR_RW(zone03);

564

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