CC: [email protected]
TO: Kees Cook <[email protected]>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git 
kspp/memcpy/next-20210618/v0.192314
head:   bbcfcdcf3881ef6f9ae1b1b8e0ddf03da30c5aad
commit: 42ced52d9b8048c4e69157085c716191c809e59d [25/90] bnxt_en: Use 
struct_group_attr() for memcpy() region
:::::: branch date: 20 hours ago
:::::: commit date: 2 days ago
config: s390-randconfig-s031-20210621 (attached as .config)
compiler: s390-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.3-341-g8af24329-dirty
        # 
https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git/commit/?id=42ced52d9b8048c4e69157085c716191c809e59d
        git remote add kees 
https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux.git
        git fetch --no-tags kees kspp/memcpy/next-20210618/v0.192314
        git checkout 42ced52d9b8048c4e69157085c716191c809e59d
        # 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__' W=1 ARCH=s390 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <[email protected]>


sparse warnings: (new ones prefixed by >>)
   drivers/net/ethernet/broadcom/bnxt/bnxt_dcb.c: note: in included file 
(through include/net/net_namespace.h, include/linux/netdevice.h):
   include/linux/skbuff.h:811:1: sparse: sparse: directive in macro's argument 
list
   include/linux/skbuff.h:815:1: sparse: sparse: directive in macro's argument 
list
   include/linux/skbuff.h:837:1: sparse: sparse: directive in macro's argument 
list
   include/linux/skbuff.h:841:1: sparse: sparse: directive in macro's argument 
list
   drivers/net/ethernet/broadcom/bnxt/bnxt_dcb.c: note: in included file:
>> drivers/net/ethernet/broadcom/bnxt/bnxt_dcb.h:30:1: sparse: sparse: 
>> directive in macro's argument list
--
   drivers/net/ethernet/broadcom/bnxt/bnxt.c: note: in included file (through 
include/net/net_namespace.h, include/linux/netdevice.h):
   include/linux/skbuff.h:811:1: sparse: sparse: directive in macro's argument 
list
   include/linux/skbuff.h:815:1: sparse: sparse: directive in macro's argument 
list
   include/linux/skbuff.h:837:1: sparse: sparse: directive in macro's argument 
list
   include/linux/skbuff.h:841:1: sparse: sparse: directive in macro's argument 
list
   drivers/net/ethernet/broadcom/bnxt/bnxt.c: note: in included file:
>> drivers/net/ethernet/broadcom/bnxt/bnxt_dcb.h:30:1: sparse: sparse: 
>> directive in macro's argument list
   drivers/net/ethernet/broadcom/bnxt/bnxt.c: note: in included file (through 
arch/s390/include/asm/io.h, include/linux/io.h, include/linux/pci.h):
   include/asm-generic/io.h:237:22: sparse: sparse: incorrect type in argument 
1 (different base types) @@     expected unsigned long long [usertype] val @@   
  got restricted __le64 [usertype] @@
   include/asm-generic/io.h:237:22: sparse:     expected unsigned long long 
[usertype] val
   include/asm-generic/io.h:237:22: sparse:     got restricted __le64 [usertype]
   include/asm-generic/io.h:237:22: sparse: sparse: incorrect type in argument 
1 (different base types) @@     expected unsigned long long [usertype] val @@   
  got restricted __le64 [usertype] @@
   include/asm-generic/io.h:237:22: sparse:     expected unsigned long long 
[usertype] val
   include/asm-generic/io.h:237:22: sparse:     got restricted __le64 [usertype]
   include/asm-generic/io.h:237:22: sparse: sparse: incorrect type in argument 
1 (different base types) @@     expected unsigned long long [usertype] val @@   
  got restricted __le64 [usertype] @@
   include/asm-generic/io.h:237:22: sparse:     expected unsigned long long 
[usertype] val
   include/asm-generic/io.h:237:22: sparse:     got restricted __le64 [usertype]
   include/asm-generic/io.h:237:22: sparse: sparse: incorrect type in argument 
1 (different base types) @@     expected unsigned long long [usertype] val @@   
  got restricted __le64 [usertype] @@
   include/asm-generic/io.h:237:22: sparse:     expected unsigned long long 
[usertype] val
   include/asm-generic/io.h:237:22: sparse:     got restricted __le64 [usertype]
   include/asm-generic/io.h:237:22: sparse: sparse: incorrect type in argument 
1 (different base types) @@     expected unsigned long long [usertype] val @@   
  got restricted __le64 [usertype] @@
   include/asm-generic/io.h:237:22: sparse:     expected unsigned long long 
[usertype] val
   include/asm-generic/io.h:237:22: sparse:     got restricted __le64 [usertype]
   include/asm-generic/io.h:308:22: sparse: sparse: incorrect type in argument 
1 (different base types) @@     expected unsigned long long [usertype] val @@   
  got restricted __le64 [usertype] @@
   include/asm-generic/io.h:308:22: sparse:     expected unsigned long long 
[usertype] val
   include/asm-generic/io.h:308:22: sparse:     got restricted __le64 [usertype]
   include/asm-generic/io.h:300:22: sparse: sparse: incorrect type in argument 
1 (different base types) @@     expected unsigned int [usertype] val @@     got 
restricted __le32 [usertype] @@
   include/asm-generic/io.h:300:22: sparse:     expected unsigned int 
[usertype] val
   include/asm-generic/io.h:300:22: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:300:22: sparse: sparse: incorrect type in argument 
1 (different base types) @@     expected unsigned int [usertype] val @@     got 
restricted __le32 [usertype] @@
   include/asm-generic/io.h:300:22: sparse:     expected unsigned int 
[usertype] val
   include/asm-generic/io.h:300:22: sparse:     got restricted __le32 [usertype]
   include/asm-generic/io.h:237:22: sparse: sparse: incorrect type in argument 
1 (different base types) @@     expected unsigned long long [usertype] val @@   
  got restricted __le64 [usertype] @@
   include/asm-generic/io.h:237:22: sparse:     expected unsigned long long 
[usertype] val
   include/asm-generic/io.h:237:22: sparse:     got restricted __le64 [usertype]
   include/asm-generic/io.h:237:22: sparse: sparse: incorrect type in argument 
1 (different base types) @@     expected unsigned long long [usertype] val @@   
  got restricted __le64 [usertype] @@
   include/asm-generic/io.h:237:22: sparse:     expected unsigned long long 
[usertype] val
   include/asm-generic/io.h:237:22: sparse:     got restricted __le64 [usertype]
   include/asm-generic/io.h:237:22: sparse: sparse: incorrect type in argument 
1 (different base types) @@     expected unsigned long long [usertype] val @@   
  got restricted __le64 [usertype] @@
   include/asm-generic/io.h:237:22: sparse:     expected unsigned long long 
[usertype] val
   include/asm-generic/io.h:237:22: sparse:     got restricted __le64 [usertype]
   include/asm-generic/io.h:237:22: sparse: sparse: incorrect type in argument 
1 (different base types) @@     expected unsigned long long [usertype] val @@   
  got restricted __le64 [usertype] @@
   include/asm-generic/io.h:237:22: sparse:     expected unsigned long long 
[usertype] val
   include/asm-generic/io.h:237:22: sparse:     got restricted __le64 [usertype]
   include/asm-generic/io.h:237:22: sparse: sparse: incorrect type in argument 
1 (different base types) @@     expected unsigned long long [usertype] val @@   
  got restricted __le64 [usertype] @@
   include/asm-generic/io.h:237:22: sparse:     expected unsigned long long 
[usertype] val
   include/asm-generic/io.h:237:22: sparse:     got restricted __le64 [usertype]
   include/asm-generic/io.h:237:22: sparse: sparse: incorrect type in argument 
1 (different base types) @@     expected unsigned long long [usertype] val @@   
  got restricted __le64 [usertype] @@
   include/asm-generic/io.h:237:22: sparse:     expected unsigned long long 
[usertype] val
   include/asm-generic/io.h:237:22: sparse:     got restricted __le64 [usertype]
   include/asm-generic/io.h:237:22: sparse: sparse: incorrect type in argument 
1 (different base types) @@     expected unsigned long long [usertype] val @@   
  got restricted __le64 [usertype] @@
   include/asm-generic/io.h:237:22: sparse:     expected unsigned long long 
[usertype] val
   include/asm-generic/io.h:237:22: sparse:     got restricted __le64 [usertype]
   include/asm-generic/io.h:237:22: sparse: sparse: incorrect type in argument 
1 (different base types) @@     expected unsigned long long [usertype] val @@   
  got restricted __le64 [usertype] @@
   include/asm-generic/io.h:237:22: sparse:     expected unsigned long long 
[usertype] val
   include/asm-generic/io.h:237:22: sparse:     got restricted __le64 [usertype]
   include/asm-generic/io.h:237:22: sparse: sparse: incorrect type in argument 
1 (different base types) @@     expected unsigned long long [usertype] val @@   
  got restricted __le64 [usertype] @@
   include/asm-generic/io.h:237:22: sparse:     expected unsigned long long 
[usertype] val
   include/asm-generic/io.h:237:22: sparse:     got restricted __le64 [usertype]
   include/asm-generic/io.h:237:22: sparse: sparse: incorrect type in argument 
1 (different base types) @@     expected unsigned long long [usertype] val @@   
  got restricted __le64 [usertype] @@
   include/asm-generic/io.h:237:22: sparse:     expected unsigned long long 
[usertype] val
   include/asm-generic/io.h:237:22: sparse:     got restricted __le64 [usertype]
   include/asm-generic/io.h:237:22: sparse: sparse: incorrect type in argument 
1 (different base types) @@     expected unsigned long long [usertype] val @@   
  got restricted __le64 [usertype] @@
   include/asm-generic/io.h:237:22: sparse:     expected unsigned long long 
[usertype] val
   include/asm-generic/io.h:237:22: sparse:     got restricted __le64 [usertype]
   include/asm-generic/io.h:237:22: sparse: sparse: incorrect type in argument 
1 (different base types) @@     expected unsigned long long [usertype] val @@   
  got restricted __le64 [usertype] @@
   include/asm-generic/io.h:237:22: sparse:     expected unsigned long long 
[usertype] val
   include/asm-generic/io.h:237:22: sparse:     got restricted __le64 [usertype]

vim +30 drivers/net/ethernet/broadcom/bnxt/bnxt_dcb.h

7df4ae9fe85567 Michael Chan 2016-12-02  23  
7df4ae9fe85567 Michael Chan 2016-12-02  24  struct bnxt_cos2bw_cfg {
7df4ae9fe85567 Michael Chan 2016-12-02  25      u8                      pad[3];
42ced52d9b8048 Kees Cook    2021-05-24  26      struct_group_attr(cfg,__packed,
7df4ae9fe85567 Michael Chan 2016-12-02  27              u8              
queue_id;
7df4ae9fe85567 Michael Chan 2016-12-02  28              __le32          min_bw;
7df4ae9fe85567 Michael Chan 2016-12-02  29              __le32          max_bw;
70098a47bbf131 Michael Chan 2017-07-24 @30  #define BW_VALUE_UNIT_PERCENT1_100  
        (0x1UL << 29)
7df4ae9fe85567 Michael Chan 2016-12-02  31              u8              tsa;
7df4ae9fe85567 Michael Chan 2016-12-02  32              u8              pri_lvl;
7df4ae9fe85567 Michael Chan 2016-12-02  33              u8              
bw_weight;
42ced52d9b8048 Kees Cook    2021-05-24  34      );
7df4ae9fe85567 Michael Chan 2016-12-02  35      u8                      unused;
7df4ae9fe85567 Michael Chan 2016-12-02  36  };
7df4ae9fe85567 Michael Chan 2016-12-02  37  

:::::: The code at line 30 was first introduced by commit
:::::: 70098a47bbf131b65c64ca935c2480e64c9c7c51 bnxt_en: Set ETS min_bw 
parameter for older firmware.

:::::: TO: Michael Chan <[email protected]>
:::::: CC: David S. Miller <[email protected]>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/[email protected]

Attachment: .config.gz
Description: application/gzip

_______________________________________________
kbuild mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to