lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:   Sun, 30 Oct 2022 18:58:17 +0800
From:   kernel test robot <lkp@...el.com>
To:     Luc Van Oostenryck <luc.vanoostenryck@...il.com>
Cc:     oe-kbuild-all@...ts.linux.dev, linux-kernel@...r.kernel.org,
        Andrew Morton <akpm@...ux-foundation.org>,
        Linux Memory Management List <linux-mm@...ck.org>
Subject: drivers/net/ethernet/brocade/bna/bna_enet.c:412:38: sparse: sparse:
 incorrect type in assignment (different base types)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   882ad2a2a8ffa1defecdf907052f04da2737dc46
commit: d991bb1c8da842a2a0b9dc83b1005e655783f861 include/linux/compiler-gcc.h: sparse can do constant folding of __builtin_bswap*()
date:   1 year, 6 months ago
config: csky-randconfig-s052-20221028
compiler: csky-linux-gcc (GCC) 12.1.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.4-39-gce1a6720-dirty
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=d991bb1c8da842a2a0b9dc83b1005e655783f861
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout d991bb1c8da842a2a0b9dc83b1005e655783f861
        # save the config file
        mkdir build_dir && cp config build_dir/.config
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=csky SHELL=/bin/bash

If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@...el.com>

sparse warnings: (new ones prefixed by >>)
   drivers/net/ethernet/brocade/bna/bna_enet.c:167:40: sparse: sparse: cast to restricted __be32
   drivers/net/ethernet/brocade/bna/bna_enet.c:168:40: sparse: sparse: cast to restricted __be32
   drivers/net/ethernet/brocade/bna/bna_enet.c:169:42: sparse: sparse: cast to restricted __be32
   drivers/net/ethernet/brocade/bna/bna_enet.c:171:45: sparse: sparse: cast to restricted __be32
   drivers/net/ethernet/brocade/bna/bna_enet.c:184:28: sparse: sparse: cast to restricted __be32
   drivers/net/ethernet/brocade/bna/bna_enet.c:185:28: sparse: sparse: cast to restricted __be32
   drivers/net/ethernet/brocade/bna/bna_enet.c:189:9: sparse: sparse: cast to restricted __be64
   drivers/net/ethernet/brocade/bna/bna_enet.c:190:9: sparse: sparse: cast to restricted __be64
   drivers/net/ethernet/brocade/bna/bna_enet.c:191:9: sparse: sparse: cast to restricted __be64
   drivers/net/ethernet/brocade/bna/bna_enet.c:192:9: sparse: sparse: cast to restricted __be64
   drivers/net/ethernet/brocade/bna/bna_enet.c:193:9: sparse: sparse: cast to restricted __be64
   drivers/net/ethernet/brocade/bna/bna_enet.c:194:9: sparse: sparse: cast to restricted __be64
   drivers/net/ethernet/brocade/bna/bna_enet.c:207:48: sparse: sparse: cast to restricted __be64
   drivers/net/ethernet/brocade/bna/bna_enet.c:222:48: sparse: sparse: cast to restricted __be64
>> drivers/net/ethernet/brocade/bna/bna_enet.c:412:38: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned short [usertype] num_entries @@     got restricted __be16 [usertype] @@
   drivers/net/ethernet/brocade/bna/bna_enet.c:412:38: sparse:     expected unsigned short [usertype] num_entries
   drivers/net/ethernet/brocade/bna/bna_enet.c:412:38: sparse:     got restricted __be16 [usertype]
   drivers/net/ethernet/brocade/bna/bna_enet.c:429:40: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned short [usertype] num_entries @@     got restricted __be16 [usertype] @@
   drivers/net/ethernet/brocade/bna/bna_enet.c:429:40: sparse:     expected unsigned short [usertype] num_entries
   drivers/net/ethernet/brocade/bna/bna_enet.c:429:40: sparse:     got restricted __be16 [usertype]
   drivers/net/ethernet/brocade/bna/bna_enet.c:446:37: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned short [usertype] num_entries @@     got restricted __be16 [usertype] @@
   drivers/net/ethernet/brocade/bna/bna_enet.c:446:37: sparse:     expected unsigned short [usertype] num_entries
   drivers/net/ethernet/brocade/bna/bna_enet.c:446:37: sparse:     got restricted __be16 [usertype]
   drivers/net/ethernet/brocade/bna/bna_enet.c:467:39: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned short [usertype] num_entries @@     got restricted __be16 [usertype] @@
   drivers/net/ethernet/brocade/bna/bna_enet.c:467:39: sparse:     expected unsigned short [usertype] num_entries
   drivers/net/ethernet/brocade/bna/bna_enet.c:467:39: sparse:     got restricted __be16 [usertype]
   drivers/net/ethernet/brocade/bna/bna_enet.c:1164:35: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned short [usertype] num_entries @@     got restricted __be16 [usertype] @@
   drivers/net/ethernet/brocade/bna/bna_enet.c:1164:35: sparse:     expected unsigned short [usertype] num_entries
   drivers/net/ethernet/brocade/bna/bna_enet.c:1164:35: sparse:     got restricted __be16 [usertype]
   drivers/net/ethernet/brocade/bna/bna_enet.c:1626:34: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned short [usertype] num_entries @@     got restricted __be16 [usertype] @@
   drivers/net/ethernet/brocade/bna/bna_enet.c:1626:34: sparse:     expected unsigned short [usertype] num_entries
   drivers/net/ethernet/brocade/bna/bna_enet.c:1626:34: sparse:     got restricted __be16 [usertype]
   drivers/net/ethernet/brocade/bna/bna_enet.c:1704:9: sparse: sparse: cast to restricted __be32
   drivers/net/ethernet/brocade/bna/bna_enet.c:1704:9: sparse: sparse: cast to restricted __be32
   drivers/net/ethernet/brocade/bna/bna_enet.c:1716:9: sparse: sparse: cast to restricted __be32
   drivers/net/ethernet/brocade/bna/bna_enet.c:1716:9: sparse: sparse: cast to restricted __be32
   drivers/net/ethernet/brocade/bna/bna_enet.c:1848:35: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned short [usertype] num_entries @@     got restricted __be16 [usertype] @@
   drivers/net/ethernet/brocade/bna/bna_enet.c:1848:35: sparse:     expected unsigned short [usertype] num_entries
   drivers/net/ethernet/brocade/bna/bna_enet.c:1848:35: sparse:     got restricted __be16 [usertype]
>> drivers/net/ethernet/brocade/bna/bna_enet.c:1850:31: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned short [usertype] stats_mask @@     got restricted __be16 [usertype] @@
   drivers/net/ethernet/brocade/bna/bna_enet.c:1850:31: sparse:     expected unsigned short [usertype] stats_mask
   drivers/net/ethernet/brocade/bna/bna_enet.c:1850:31: sparse:     got restricted __be16 [usertype]
>> drivers/net/ethernet/brocade/bna/bna_enet.c:1851:33: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int [usertype] tx_enet_mask @@     got restricted __be32 [usertype] @@
   drivers/net/ethernet/brocade/bna/bna_enet.c:1851:33: sparse:     expected unsigned int [usertype] tx_enet_mask
   drivers/net/ethernet/brocade/bna/bna_enet.c:1851:33: sparse:     got restricted __be32 [usertype]
>> drivers/net/ethernet/brocade/bna/bna_enet.c:1852:33: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int [usertype] rx_enet_mask @@     got restricted __be32 [usertype] @@
   drivers/net/ethernet/brocade/bna/bna_enet.c:1852:33: sparse:     expected unsigned int [usertype] rx_enet_mask
   drivers/net/ethernet/brocade/bna/bna_enet.c:1852:33: sparse:     got restricted __be32 [usertype]
   drivers/net/ethernet/brocade/bna/bna_enet.c: note: in included file (through arch/csky/include/asm/io.h, include/linux/io.h, include/linux/irq.h, ...):
   include/asm-generic/io.h:267:16: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:299:22: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   include/asm-generic/io.h:299:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:299:22: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:267:16: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:267:16: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:299:22: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   include/asm-generic/io.h:299:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:299:22: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:267:16: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:299:22: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   include/asm-generic/io.h:299:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:299:22: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:267:16: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:267:16: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:299:22: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   include/asm-generic/io.h:299:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:299:22: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:267:16: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:267:16: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:299:22: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   include/asm-generic/io.h:299:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:299:22: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:267:16: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:299:22: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   include/asm-generic/io.h:299:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:299:22: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:267:16: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:267:16: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:299:22: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   include/asm-generic/io.h:299:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:299:22: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:267:16: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:267:16: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:299:22: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   include/asm-generic/io.h:299:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:299:22: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:267:16: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:267:16: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:299:22: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   include/asm-generic/io.h:299:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:299:22: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:267:16: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:267:16: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:299:22: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   include/asm-generic/io.h:299:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:299:22: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:267:16: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:267:16: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:299:22: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   include/asm-generic/io.h:299:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:299:22: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:267:16: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:267:16: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:299:22: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   include/asm-generic/io.h:299:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:299:22: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:267:16: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:267:16: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:299:22: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   include/asm-generic/io.h:299:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:299:22: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:267:16: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:299:22: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   include/asm-generic/io.h:299:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:299:22: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:267:16: sparse: sparse: cast to restricted __le32
--
   include/asm-generic/io.h:299:22: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   include/asm-generic/io.h:299:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:299:22: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:267:16: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:299:22: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   include/asm-generic/io.h:299:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:299:22: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:267:16: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:299:22: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   include/asm-generic/io.h:299:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:299:22: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:267:16: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:299:22: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   include/asm-generic/io.h:299:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:299:22: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:299:22: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   include/asm-generic/io.h:299:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:299:22: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:267:16: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:299:22: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   include/asm-generic/io.h:299:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:299:22: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:299:22: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   include/asm-generic/io.h:299:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:299:22: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:267:16: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:267:16: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:267:16: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:267:16: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:267:16: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:267:16: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:267:16: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:267:16: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:299:22: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   include/asm-generic/io.h:299:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:299:22: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:267:16: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:299:22: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   include/asm-generic/io.h:299:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:299:22: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:299:22: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   include/asm-generic/io.h:299:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:299:22: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:299:22: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   include/asm-generic/io.h:299:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:299:22: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:299:22: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   include/asm-generic/io.h:299:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:299:22: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:267:16: sparse: sparse: cast to restricted __le32
   drivers/net/ethernet/brocade/bna/bfa_ioc.c: note: in included file:
   drivers/net/ethernet/brocade/bna/bfa_ioc.h:55:34: sparse: sparse: cast from restricted __be32
   drivers/net/ethernet/brocade/bna/bfa_ioc.h:56:34: sparse: sparse: cast from restricted __be32
   drivers/net/ethernet/brocade/bna/bfa_ioc.c: note: in included file (through arch/csky/include/asm/io.h, include/linux/io.h, include/linux/irq.h, ...):
   include/asm-generic/io.h:267:16: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:267:16: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:299:22: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   include/asm-generic/io.h:299:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:299:22: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:299:22: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   include/asm-generic/io.h:299:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:299:22: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:299:22: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   include/asm-generic/io.h:299:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:299:22: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:299:22: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   include/asm-generic/io.h:299:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:299:22: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:299:22: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   include/asm-generic/io.h:299:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:299:22: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:299:22: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   include/asm-generic/io.h:299:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:299:22: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:299:22: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   include/asm-generic/io.h:299:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:299:22: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:267:16: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:299:22: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   include/asm-generic/io.h:299:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:299:22: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:267:16: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:299:22: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   include/asm-generic/io.h:299:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:299:22: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:299:22: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   include/asm-generic/io.h:299:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:299:22: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:267:16: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:299:22: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   include/asm-generic/io.h:299:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:299:22: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:267:16: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:267:16: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:299:22: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] value @@     got restricted __le32 [usertype] @@
   include/asm-generic/io.h:299:22: sparse:     expected unsigned int [usertype] value
   include/asm-generic/io.h:299:22: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:267:16: sparse: sparse: cast to restricted __le32
   include/asm-generic/io.h:267:16: sparse: sparse: cast to restricted __le32
   drivers/net/ethernet/brocade/bna/bfa_ioc.c: note: in included file:
>> drivers/net/ethernet/brocade/bna/bfa_ioc.h:65:22: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int [usertype] al_len @@     got restricted __be32 [usertype] @@
   drivers/net/ethernet/brocade/bna/bfa_ioc.h:65:22: sparse:     expected unsigned int [usertype] al_len
   drivers/net/ethernet/brocade/bna/bfa_ioc.h:65:22: sparse:     got restricted __be32 [usertype]
   drivers/net/ethernet/brocade/bna/bfa_ioc.h:55:34: sparse: sparse: cast from restricted __be32
   drivers/net/ethernet/brocade/bna/bfa_ioc.h:56:34: sparse: sparse: cast from restricted __be32
>> drivers/net/ethernet/brocade/bna/bfa_ioc.h:65:22: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int [usertype] al_len @@     got restricted __be32 [usertype] @@
   drivers/net/ethernet/brocade/bna/bfa_ioc.h:65:22: sparse:     expected unsigned int [usertype] al_len
   drivers/net/ethernet/brocade/bna/bfa_ioc.h:65:22: sparse:     got restricted __be32 [usertype]
   drivers/net/ethernet/brocade/bna/bfa_ioc.h:55:34: sparse: sparse: too many warnings

vim +412 drivers/net/ethernet/brocade/bna/bna_enet.c

45979c1e424f6a Rasesh Mody 2011-08-08  403  
45979c1e424f6a Rasesh Mody 2011-08-08  404  static void
45979c1e424f6a Rasesh Mody 2011-08-08  405  bna_bfi_ethport_admin_up(struct bna_ethport *ethport)
45979c1e424f6a Rasesh Mody 2011-08-08  406  {
45979c1e424f6a Rasesh Mody 2011-08-08  407  	struct bfi_enet_enable_req *admin_up_req =
45979c1e424f6a Rasesh Mody 2011-08-08  408  		&ethport->bfi_enet_cmd.admin_req;
45979c1e424f6a Rasesh Mody 2011-08-08  409  
45979c1e424f6a Rasesh Mody 2011-08-08  410  	bfi_msgq_mhdr_set(admin_up_req->mh, BFI_MC_ENET,
45979c1e424f6a Rasesh Mody 2011-08-08  411  		BFI_ENET_H2I_PORT_ADMIN_UP_REQ, 0, 0);
45979c1e424f6a Rasesh Mody 2011-08-08 @412  	admin_up_req->mh.num_entries = htons(
45979c1e424f6a Rasesh Mody 2011-08-08  413  		bfi_msgq_num_cmd_entries(sizeof(struct bfi_enet_enable_req)));
45979c1e424f6a Rasesh Mody 2011-08-08  414  	admin_up_req->enable = BNA_STATUS_T_ENABLED;
45979c1e424f6a Rasesh Mody 2011-08-08  415  
45979c1e424f6a Rasesh Mody 2011-08-08  416  	bfa_msgq_cmd_set(&ethport->msgq_cmd, NULL, NULL,
45979c1e424f6a Rasesh Mody 2011-08-08  417  		sizeof(struct bfi_enet_enable_req), &admin_up_req->mh);
45979c1e424f6a Rasesh Mody 2011-08-08  418  	bfa_msgq_cmd_post(&ethport->bna->msgq, &ethport->msgq_cmd);
45979c1e424f6a Rasesh Mody 2011-08-08  419  }
45979c1e424f6a Rasesh Mody 2011-08-08  420  

:::::: The code at line 412 was first introduced by commit
:::::: 45979c1e424f6a14495a4988343df176cb745f84 bna: Introduce ENET as New Driver and FW Interface

:::::: TO: Rasesh Mody <rmody@...cade.com>
:::::: CC: David S. Miller <davem@...emloft.net>

-- 
0-DAY CI Kernel Test Service
https://01.org/lkp

View attachment "config" of type "text/plain" (164494 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ