All of lore.kernel.org
 help / color / mirror / Atom feed
From: kernel test robot <lkp@intel.com>
To: kbuild-all@lists.01.org
Subject: drivers/scsi/bfa/bfad_attr.c:984:18: sparse: sparse: symbol 'bfad_im_vport_attrs' was not declared. Should it be static?
Date: Thu, 18 Nov 2021 05:40:20 +0800	[thread overview]
Message-ID: <202111180531.fbwRay0q-lkp@intel.com> (raw)

[-- 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 --]

WARNING: multiple messages have this Message-ID (diff)
From: kernel test robot <lkp@intel.com>
To: Bart Van Assche <bvanassche@acm.org>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org,
	"Martin K. Petersen" <martin.petersen@oracle.com>
Subject: drivers/scsi/bfa/bfad_attr.c:984:18: sparse: sparse: symbol 'bfad_im_vport_attrs' was not declared. Should it be static?
Date: Thu, 18 Nov 2021 05:40:20 +0800	[thread overview]
Message-ID: <202111180531.fbwRay0q-lkp@intel.com> (raw)

[-- 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 --]

             reply	other threads:[~2021-11-17 21:40 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-17 21:40 kernel test robot [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=202111180531.fbwRay0q-lkp@intel.com \
    --to=lkp@intel.com \
    --cc=kbuild-all@lists.01.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.