Hi Bart,
I love your patch! Perhaps something to improve:
[auto build test WARNING on mkp-scsi/for-next]
[also build test WARNING on jejb-scsi/for-next s390/features linus/master v5.15-rc5
next-20211013]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch]
url:
https://github.com/0day-ci/linux/commits/Bart-Van-Assche/Register-SCSI-sy...
base:
https://git.kernel.org/pub/scm/linux/kernel/git/mkp/scsi.git for-next
config: x86_64-randconfig-s021-20211012 (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://github.com/0day-ci/linux/commit/2b7f54c13f8268dd46abeae708e58ce18...
git remote add linux-review
https://github.com/0day-ci/linux
git fetch --no-tags linux-review
Bart-Van-Assche/Register-SCSI-sysfs-attributes-earlier/20211013-073856
git checkout 2b7f54c13f8268dd46abeae708e58ce1811ce52a
# save the attached .config to linux build tree
make W=1 C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir
ARCH=x86_64 SHELL=/bin/bash drivers/scsi/bfa/
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)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?
Please review and possibly fold the followup patch.
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org