[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202111180526.lEWkKU2N-lkp@intel.com>
Date: Thu, 18 Nov 2021 05:03:53 +0800
From: kernel test robot <lkp@...el.com>
To: Bart Van Assche <bvanassche@....org>
Cc: kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org,
"Martin K. Petersen" <martin.petersen@...cle.com>
Subject: drivers/ata/libata-sata.c:925:18: sparse: sparse: symbol
'ata_ncq_sdev_attrs' was not declared. Should it be static?
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: ee1703cda8dc777e937dec172da55beaf1a74919
commit: c3f69c7f629ff53c75f335754ea41426b8e095de scsi: ata: Switch to attribute groups
date: 5 weeks ago
config: sparc64-randconfig-s031-20211116 (attached as .config)
compiler: sparc64-linux-gcc (GCC) 11.2.0
reproduce:
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# apt-get install sparse
# sparse version: v0.6.4-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=c3f69c7f629ff53c75f335754ea41426b8e095de
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout c3f69c7f629ff53c75f335754ea41426b8e095de
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=sparc64 SHELL=/bin/bash drivers/ata/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@...el.com>
sparse warnings: (new ones prefixed by >>)
>> drivers/ata/libata-sata.c:925:18: sparse: sparse: symbol 'ata_ncq_sdev_attrs' was not declared. Should it be static?
--
>> drivers/ata/libahci.c:134:18: sparse: sparse: symbol 'ahci_sdev_attrs' was not declared. Should it be static?
vim +/ata_ncq_sdev_attrs +925 drivers/ata/libata-sata.c
924
> 925 struct attribute *ata_ncq_sdev_attrs[] = {
926 &dev_attr_unload_heads.attr,
927 &dev_attr_ncq_prio_enable.attr,
928 &dev_attr_ncq_prio_supported.attr,
929 NULL
930 };
931
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
Download attachment ".config.gz" of type "application/gzip" (37113 bytes)
Powered by blists - more mailing lists