tree:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 02de58b24d2e1b2cf947d57205bd2221d897193c
commit: 3bbd8ef9f780749426d4e52be0dfa3f70656d92b scsi: bfa: Staticify all local functions
date: 10 weeks ago
config: ia64-randconfig-s031-20200930 (attached as .config)
compiler: ia64-linux-gcc (GCC) 9.3.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.2-201-g24bdaac6-dirty
#
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit...
git remote add linus
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 3bbd8ef9f780749426d4e52be0dfa3f70656d92b
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross C=1
CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=ia64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
echo
echo "sparse warnings: (new ones prefixed by >>)"
echo
drivers/scsi/bfa/bfad_bsg.c:2391:25: sparse: sparse: cast to restricted __be32
drivers/scsi/bfa/bfad_bsg.c:2391:25: sparse: sparse: cast to restricted __be32
drivers/scsi/bfa/bfad_bsg.c:2391:25: sparse: sparse: cast to restricted __be32
drivers/scsi/bfa/bfad_bsg.c:2391:25: sparse: sparse: cast to restricted __be32
drivers/scsi/bfa/bfad_bsg.c:2391:25: sparse: sparse: cast to restricted __be32
drivers/scsi/bfa/bfad_bsg.c:2391:25: sparse: sparse: cast to restricted __be32
drivers/scsi/bfa/bfad_bsg.c:2414:38: sparse: sparse: cast to restricted __be16
drivers/scsi/bfa/bfad_bsg.c:2414:38: sparse: sparse: cast to restricted __be16
drivers/scsi/bfa/bfad_bsg.c:2414:38: sparse: sparse: cast to restricted __be16
drivers/scsi/bfa/bfad_bsg.c:2414:38: sparse: sparse: cast to restricted __be16
drivers/scsi/bfa/bfad_bsg.c:2415:38: sparse: sparse: cast to restricted __be16
drivers/scsi/bfa/bfad_bsg.c:2415:38: sparse: sparse: cast to restricted __be16
drivers/scsi/bfa/bfad_bsg.c:2415:38: sparse: sparse: cast to restricted __be16
drivers/scsi/bfa/bfad_bsg.c:2415:38: sparse: sparse: cast to restricted __be16
drivers/scsi/bfa/bfad_bsg.c:2417:33: sparse: sparse: cast to restricted __be32
drivers/scsi/bfa/bfad_bsg.c:2417:33: sparse: sparse: cast to restricted __be32
drivers/scsi/bfa/bfad_bsg.c:2417:33: sparse: sparse: cast to restricted __be32
drivers/scsi/bfa/bfad_bsg.c:2417:33: sparse: sparse: cast to restricted __be32
drivers/scsi/bfa/bfad_bsg.c:2417:33: sparse: sparse: cast to restricted __be32
drivers/scsi/bfa/bfad_bsg.c:2417:33: sparse: sparse: cast to restricted __be32
> drivers/scsi/bfa/bfad_bsg.c:2551:9: sparse: sparse: incorrect
type in initializer (different base types) @@ expected unsigned int [usertype]
scan_flags @@ got restricted blist_flags_t @@
> drivers/scsi/bfa/bfad_bsg.c:2551:9: sparse: expected unsigned int [usertype]
scan_flags
> drivers/scsi/bfa/bfad_bsg.c:2551:9: sparse: got restricted blist_flags_t
> drivers/scsi/bfa/bfad_bsg.c:2551:9: sparse: sparse: invalid assignment: |=
> drivers/scsi/bfa/bfad_bsg.c:2551:9: sparse: left side has type restricted
blist_flags_t
> drivers/scsi/bfa/bfad_bsg.c:2551:9: sparse: right side has type unsigned int
drivers/scsi/bfa/bfad_bsg.c:2551:9: sparse: sparse: invalid assignment: &=
> drivers/scsi/bfa/bfad_bsg.c:2551:9: sparse: left side has type
restricted blist_flags_t
> drivers/scsi/bfa/bfad_bsg.c:2551:9: sparse: right side has type unsigned int
drivers/scsi/bfa/bfad_bsg.c:2555:17: sparse: sparse: incorrect type in
initializer (different base types) @@ expected unsigned int [usertype] scan_flags @@
got restricted blist_flags_t @@
drivers/scsi/bfa/bfad_bsg.c:2555:17: sparse: expected unsigned int [usertype]
scan_flags
drivers/scsi/bfa/bfad_bsg.c:2555:17: sparse: got restricted blist_flags_t
drivers/scsi/bfa/bfad_bsg.c:2555:17: sparse: sparse: invalid assignment: |=
drivers/scsi/bfa/bfad_bsg.c:2555:17: sparse: left side has type restricted
blist_flags_t
drivers/scsi/bfa/bfad_bsg.c:2555:17: sparse: right side has type unsigned int
drivers/scsi/bfa/bfad_bsg.c:2555:17: sparse: sparse: invalid assignment: &=
drivers/scsi/bfa/bfad_bsg.c:2555:17: sparse: left side has type restricted
blist_flags_t
drivers/scsi/bfa/bfad_bsg.c:2555:17: sparse: right side has type unsigned int
drivers/scsi/bfa/bfad_bsg.c:3380:34: sparse: sparse: incorrect type in argument 2
(different address spaces) @@ expected void const [noderef] <asn:1> *from @@
got void * @@
drivers/scsi/bfa/bfad_bsg.c:3380:34: sparse: expected void const [noderef]
<asn:1> *from
> drivers/scsi/bfa/bfad_bsg.c:3380:34: sparse: got void *
> drivers/scsi/bfa/bfad_bsg.c:3412:37: sparse: sparse: Using plain integer as NULL
pointer
drivers/scsi/bfa/bfad_bsg.c:3534:27: sparse: sparse: incorrect type in
argument 1 (different address spaces) @@ expected void [noderef] <asn:1> *to @@
got void * @@
drivers/scsi/bfa/bfad_bsg.c:3534:27: sparse: expected void [noderef] <asn:1>
*to
drivers/scsi/bfa/bfad_bsg.c:3534:27: sparse: got void *
vim +2551 drivers/scsi/bfa/bfad_bsg.c
c0350bf57445b9e Krishna Gudipati 2011-07-20 2542
5b7db7af522d9f2 Krishna Gudipati 2011-12-20 2543 /* Function to reset the LUN SCAN mode
*/
5b7db7af522d9f2 Krishna Gudipati 2011-12-20 2544 static void
5b7db7af522d9f2 Krishna Gudipati 2011-12-20 2545
bfad_iocmd_lunmask_reset_lunscan_mode(struct bfad_s *bfad, int lunmask_cfg)
5b7db7af522d9f2 Krishna Gudipati 2011-12-20 2546 {
5b7db7af522d9f2 Krishna Gudipati 2011-12-20 2547 struct bfad_im_port_s *pport_im =
bfad->pport.im_port;
5b7db7af522d9f2 Krishna Gudipati 2011-12-20 2548 struct bfad_vport_s *vport = NULL;
5b7db7af522d9f2 Krishna Gudipati 2011-12-20 2549
5b7db7af522d9f2 Krishna Gudipati 2011-12-20 2550 /* Set the scsi device LUN SCAN flags
for base port */
5b7db7af522d9f2 Krishna Gudipati 2011-12-20 @2551 bfad_reset_sdev_bflags(pport_im,
lunmask_cfg);
5b7db7af522d9f2 Krishna Gudipati 2011-12-20 2552
5b7db7af522d9f2 Krishna Gudipati 2011-12-20 2553 /* Set the scsi device LUN SCAN flags
for the vports */
5b7db7af522d9f2 Krishna Gudipati 2011-12-20 2554 list_for_each_entry(vport,
&bfad->vport_list, list_entry)
5b7db7af522d9f2 Krishna Gudipati 2011-12-20 2555
bfad_reset_sdev_bflags(vport->drv_port.im_port, lunmask_cfg);
5b7db7af522d9f2 Krishna Gudipati 2011-12-20 2556 }
5b7db7af522d9f2 Krishna Gudipati 2011-12-20 2557
:::::: The code at line 2551 was first introduced by commit
:::::: 5b7db7af522d9f281ff8bf540d2b5cbea2206b27 [SCSI] bfa: Implement LUN Masking feature
using the SCSI Slave Callouts.
:::::: TO: Krishna Gudipati <kgudipat(a)brocade.com>
:::::: CC: James Bottomley <JBottomley(a)Parallels.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org