lkml.org 
[lkml]   [2021]   [Nov]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectdrivers/scsi/bfa/bfad_attr.c:984:18: sparse: sparse: symbol 'bfad_im_vport_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: e73af234a1a26a034dbf92539b54aedc5014dbb2 scsi: bfa: Switch to attribute groups
date: 5 weeks ago
config: i386-randconfig-s001-20211116 (attached as .config)
compiler: gcc-9 (Debian 9.3.0-22) 9.3.0
reproduce:
# apt-get install sparse
# sparse version: v0.6.4-dirty
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=e73af234a1a26a034dbf92539b54aedc5014dbb2
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout e73af234a1a26a034dbf92539b54aedc5014dbb2
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=i386 SHELL=/bin/bash drivers/scsi/bfa/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>


sparse warnings: (new ones prefixed by >>)
drivers/scsi/bfa/bfad_attr.c:66:39: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned long long [usertype] node_name @@ got restricted __be64 [usertype] @@
drivers/scsi/bfa/bfad_attr.c:66:39: sparse: expected unsigned long long [usertype] node_name
drivers/scsi/bfa/bfad_attr.c:66:39: sparse: got restricted __be64 [usertype]
drivers/scsi/bfa/bfad_attr.c:92:39: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned long long [usertype] port_name @@ got restricted __be64 [usertype] @@
drivers/scsi/bfa/bfad_attr.c:92:39: sparse: expected unsigned long long [usertype] port_name
drivers/scsi/bfa/bfad_attr.c:92:39: sparse: got restricted __be64 [usertype]
drivers/scsi/bfa/bfad_attr.c:248:36: sparse: sparse: incorrect type in assignment (different base types) @@ expected unsigned long long [usertype] fabric_name @@ got restricted __be64 [usertype] @@
drivers/scsi/bfa/bfad_attr.c:248:36: sparse: expected unsigned long long [usertype] fabric_name
drivers/scsi/bfa/bfad_attr.c:248:36: sparse: got restricted __be64 [usertype]
>> drivers/scsi/bfa/bfad_attr.c:984:18: sparse: sparse: symbol 'bfad_im_vport_attrs' was not declared. Should it be static?

vim +/bfad_im_vport_attrs +984 drivers/scsi/bfa/bfad_attr.c

983
> 984 struct attribute *bfad_im_vport_attrs[] = {
985 &dev_attr_serial_number.attr,
986 &dev_attr_model.attr,
987 &dev_attr_model_description.attr,
988 &dev_attr_node_name.attr,
989 &dev_attr_symbolic_name.attr,
990 &dev_attr_hardware_version.attr,
991 &dev_attr_driver_version.attr,
992 &dev_attr_option_rom_version.attr,
993 &dev_attr_firmware_version.attr,
994 &dev_attr_number_of_ports.attr,
995 &dev_attr_driver_name.attr,
996 &dev_attr_number_of_discovered_ports.attr,
997 NULL,
998 };
999

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[unhandled content-type:application/gzip]
\
 
 \ /
  Last update: 2021-11-17 22:43    [W:0.045 / U:0.244 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site