* drivers/scsi/bfa/bfad_attr.c:984:18: sparse: sparse: symbol 'bfad_im_vport_attrs' was not declared. Should it be static?
@ 2021-11-17 21:40 ` kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-11-17 21:40 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 3179 bytes --]
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(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 33163 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread* drivers/scsi/bfa/bfad_attr.c:984:18: sparse: sparse: symbol 'bfad_im_vport_attrs' was not declared. Should it be static?
@ 2021-11-17 21:40 ` kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-11-17 21:40 UTC (permalink / raw)
To: Bart Van Assche; +Cc: kbuild-all, linux-kernel, Martin K. Petersen
[-- Attachment #1: Type: text/plain, Size: 3122 bytes --]
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
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 33163 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-11-17 21:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-11-17 21:40 drivers/scsi/bfa/bfad_attr.c:984:18: sparse: sparse: symbol 'bfad_im_vport_attrs' was not declared. Should it be static? kernel test robot
2021-11-17 21:40 ` kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.