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  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, 9 Aug 2020 03:52:37 +0800
From:   kernel test robot <lkp@...el.com>
To:     Luc Van Oostenryck <luc.vanoostenryck@...il.com>
Cc:     kbuild-all@...ts.01.org, linux-kernel@...r.kernel.org
Subject: drivers/net/ethernet/aeroflex/greth.c:362:9: sparse: sparse:
 incorrect type in argument 2 (different address spaces)

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   11030fe96b57ad843518b0e9430f3cd4b3610ce2
commit: 670d0a4b10704667765f7d18f7592993d02783aa sparse: use identifiers to define address spaces
date:   7 weeks ago
config: sparc64-randconfig-s032-20200809 (attached as .config)
compiler: sparc64-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-118-ge1578773-dirty
        git checkout 670d0a4b10704667765f7d18f7592993d02783aa
        # 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=sparc64 

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


sparse warnings: (new ones prefixed by >>)

   drivers/net/ethernet/aeroflex/greth.c:362:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] l @@     got restricted __be32 [usertype] @@
   drivers/net/ethernet/aeroflex/greth.c:362:9: sparse:     expected unsigned int [usertype] l
   drivers/net/ethernet/aeroflex/greth.c:362:9: sparse:     got restricted __be32 [usertype]
>> drivers/net/ethernet/aeroflex/greth.c:362:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got unsigned int * @@
>> drivers/net/ethernet/aeroflex/greth.c:362:9: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/net/ethernet/aeroflex/greth.c:362:9: sparse:     got unsigned int *
   drivers/net/ethernet/aeroflex/greth.c:406:24: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got unsigned int * @@
   drivers/net/ethernet/aeroflex/greth.c:406:24: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/net/ethernet/aeroflex/greth.c:406:24: sparse:     got unsigned int *
   drivers/net/ethernet/aeroflex/greth.c:406:24: sparse: sparse: cast to restricted __be32
   drivers/net/ethernet/aeroflex/greth.c:409:25: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] l @@     got restricted __be32 [usertype] @@
   drivers/net/ethernet/aeroflex/greth.c:409:25: sparse:     expected unsigned int [usertype] l
   drivers/net/ethernet/aeroflex/greth.c:409:25: sparse:     got restricted __be32 [usertype]
   drivers/net/ethernet/aeroflex/greth.c:409:25: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got unsigned int * @@
   drivers/net/ethernet/aeroflex/greth.c:409:25: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/net/ethernet/aeroflex/greth.c:409:25: sparse:     got unsigned int *
   drivers/net/ethernet/aeroflex/greth.c:752:17: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] l @@     got restricted __be32 [usertype] @@
   drivers/net/ethernet/aeroflex/greth.c:752:17: sparse:     expected unsigned int [usertype] l
   drivers/net/ethernet/aeroflex/greth.c:752:17: sparse:     got restricted __be32 [usertype]
   drivers/net/ethernet/aeroflex/greth.c:752:17: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got unsigned int * @@
   drivers/net/ethernet/aeroflex/greth.c:752:17: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/net/ethernet/aeroflex/greth.c:752:17: sparse:     got unsigned int *
   drivers/net/ethernet/aeroflex/greth.c:869:17: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] l @@     got restricted __be32 [usertype] @@
   drivers/net/ethernet/aeroflex/greth.c:869:17: sparse:     expected unsigned int [usertype] l
   drivers/net/ethernet/aeroflex/greth.c:869:17: sparse:     got restricted __be32 [usertype]
   drivers/net/ethernet/aeroflex/greth.c:869:17: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got unsigned int * @@
   drivers/net/ethernet/aeroflex/greth.c:869:17: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/net/ethernet/aeroflex/greth.c:869:17: sparse:     got unsigned int *
   drivers/net/ethernet/aeroflex/greth.c:627:17: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] l @@     got restricted __be32 [usertype] @@
   drivers/net/ethernet/aeroflex/greth.c:627:17: sparse:     expected unsigned int [usertype] l
   drivers/net/ethernet/aeroflex/greth.c:627:17: sparse:     got restricted __be32 [usertype]
   drivers/net/ethernet/aeroflex/greth.c:627:17: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got unsigned int * @@
   drivers/net/ethernet/aeroflex/greth.c:627:17: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/net/ethernet/aeroflex/greth.c:627:17: sparse:     got unsigned int *
   drivers/net/ethernet/aeroflex/greth.c:692:17: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] l @@     got restricted __be32 [usertype] @@
   drivers/net/ethernet/aeroflex/greth.c:692:17: sparse:     expected unsigned int [usertype] l
   drivers/net/ethernet/aeroflex/greth.c:692:17: sparse:     got restricted __be32 [usertype]
   drivers/net/ethernet/aeroflex/greth.c:692:17: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got unsigned int * @@
   drivers/net/ethernet/aeroflex/greth.c:692:17: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/net/ethernet/aeroflex/greth.c:692:17: sparse:     got unsigned int *
   drivers/net/ethernet/aeroflex/greth.c:594:18: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got unsigned int * @@
   drivers/net/ethernet/aeroflex/greth.c:594:18: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/net/ethernet/aeroflex/greth.c:594:18: sparse:     got unsigned int *
   drivers/net/ethernet/aeroflex/greth.c:594:18: sparse: sparse: cast to restricted __be32
   drivers/net/ethernet/aeroflex/greth.c:600:16: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got unsigned int * @@
   drivers/net/ethernet/aeroflex/greth.c:600:16: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/net/ethernet/aeroflex/greth.c:600:16: sparse:     got unsigned int *
   drivers/net/ethernet/aeroflex/greth.c:600:16: sparse: sparse: cast to restricted __be32
   drivers/net/ethernet/aeroflex/greth.c:1029:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] l @@     got restricted __be32 [usertype] @@
   drivers/net/ethernet/aeroflex/greth.c:1029:9: sparse:     expected unsigned int [usertype] l
   drivers/net/ethernet/aeroflex/greth.c:1029:9: sparse:     got restricted __be32 [usertype]
   drivers/net/ethernet/aeroflex/greth.c:1029:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got unsigned int * @@
   drivers/net/ethernet/aeroflex/greth.c:1029:9: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/net/ethernet/aeroflex/greth.c:1029:9: sparse:     got unsigned int *
   drivers/net/ethernet/aeroflex/greth.c:1030:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] l @@     got restricted __be32 [usertype] @@
   drivers/net/ethernet/aeroflex/greth.c:1030:9: sparse:     expected unsigned int [usertype] l
   drivers/net/ethernet/aeroflex/greth.c:1030:9: sparse:     got restricted __be32 [usertype]
   drivers/net/ethernet/aeroflex/greth.c:1030:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got unsigned int * @@
   drivers/net/ethernet/aeroflex/greth.c:1030:9: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/net/ethernet/aeroflex/greth.c:1030:9: sparse:     got unsigned int *
   drivers/net/ethernet/aeroflex/greth.c:1066:15: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got unsigned int * @@
   drivers/net/ethernet/aeroflex/greth.c:1066:15: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/net/ethernet/aeroflex/greth.c:1066:15: sparse:     got unsigned int *
   drivers/net/ethernet/aeroflex/greth.c:1066:15: sparse: sparse: cast to restricted __be32
   drivers/net/ethernet/aeroflex/greth.c:1074:25: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] l @@     got restricted __be32 [usertype] @@
   drivers/net/ethernet/aeroflex/greth.c:1074:25: sparse:     expected unsigned int [usertype] l
   drivers/net/ethernet/aeroflex/greth.c:1074:25: sparse:     got restricted __be32 [usertype]
   drivers/net/ethernet/aeroflex/greth.c:1074:25: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got unsigned int * @@
   drivers/net/ethernet/aeroflex/greth.c:1074:25: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/net/ethernet/aeroflex/greth.c:1074:25: sparse:     got unsigned int *
   drivers/net/ethernet/aeroflex/greth.c:1075:25: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] l @@     got restricted __be32 [usertype] @@
   drivers/net/ethernet/aeroflex/greth.c:1075:25: sparse:     expected unsigned int [usertype] l
   drivers/net/ethernet/aeroflex/greth.c:1075:25: sparse:     got restricted __be32 [usertype]
   drivers/net/ethernet/aeroflex/greth.c:1075:25: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got unsigned int * @@
   drivers/net/ethernet/aeroflex/greth.c:1075:25: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/net/ethernet/aeroflex/greth.c:1075:25: sparse:     got unsigned int *
   drivers/net/ethernet/aeroflex/greth.c:1077:25: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] l @@     got restricted __be32 [usertype] @@
   drivers/net/ethernet/aeroflex/greth.c:1077:25: sparse:     expected unsigned int [usertype] l
   drivers/net/ethernet/aeroflex/greth.c:1077:25: sparse:     got restricted __be32 [usertype]
   drivers/net/ethernet/aeroflex/greth.c:1077:25: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got unsigned int * @@
   drivers/net/ethernet/aeroflex/greth.c:1077:25: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/net/ethernet/aeroflex/greth.c:1077:25: sparse:     got unsigned int *
   drivers/net/ethernet/aeroflex/greth.c:1083:25: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] l @@     got restricted __be32 [usertype] @@
   drivers/net/ethernet/aeroflex/greth.c:1083:25: sparse:     expected unsigned int [usertype] l
   drivers/net/ethernet/aeroflex/greth.c:1083:25: sparse:     got restricted __be32 [usertype]
   drivers/net/ethernet/aeroflex/greth.c:1083:25: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got unsigned int * @@
   drivers/net/ethernet/aeroflex/greth.c:1083:25: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/net/ethernet/aeroflex/greth.c:1083:25: sparse:     got unsigned int *
   drivers/net/ethernet/aeroflex/greth.c:1091:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] l @@     got restricted __be32 [usertype] @@
   drivers/net/ethernet/aeroflex/greth.c:1091:9: sparse:     expected unsigned int [usertype] l
   drivers/net/ethernet/aeroflex/greth.c:1091:9: sparse:     got restricted __be32 [usertype]
   drivers/net/ethernet/aeroflex/greth.c:1091:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got unsigned int * @@
   drivers/net/ethernet/aeroflex/greth.c:1091:9: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/net/ethernet/aeroflex/greth.c:1091:9: sparse:     got unsigned int *
   drivers/net/ethernet/aeroflex/greth.c:328:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] l @@     got restricted __be32 [usertype] @@
   drivers/net/ethernet/aeroflex/greth.c:328:9: sparse:     expected unsigned int [usertype] l
   drivers/net/ethernet/aeroflex/greth.c:328:9: sparse:     got restricted __be32 [usertype]
   drivers/net/ethernet/aeroflex/greth.c:328:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got unsigned int * @@
   drivers/net/ethernet/aeroflex/greth.c:328:9: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/net/ethernet/aeroflex/greth.c:328:9: sparse:     got unsigned int *
   drivers/net/ethernet/aeroflex/greth.c:329:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] l @@     got restricted __be32 [usertype] @@
   drivers/net/ethernet/aeroflex/greth.c:329:9: sparse:     expected unsigned int [usertype] l
   drivers/net/ethernet/aeroflex/greth.c:329:9: sparse:     got restricted __be32 [usertype]
   drivers/net/ethernet/aeroflex/greth.c:329:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got unsigned int * @@
   drivers/net/ethernet/aeroflex/greth.c:329:9: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/net/ethernet/aeroflex/greth.c:329:9: sparse:     got unsigned int *
   drivers/net/ethernet/aeroflex/greth.c:991:24: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got unsigned int * @@
   drivers/net/ethernet/aeroflex/greth.c:991:24: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/net/ethernet/aeroflex/greth.c:991:24: sparse:     got unsigned int *
   drivers/net/ethernet/aeroflex/greth.c:991:24: sparse: sparse: cast to restricted __be32
   drivers/net/ethernet/aeroflex/greth.c:994:25: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] l @@     got restricted __be32 [usertype] @@
   drivers/net/ethernet/aeroflex/greth.c:994:25: sparse:     expected unsigned int [usertype] l
   drivers/net/ethernet/aeroflex/greth.c:994:25: sparse:     got restricted __be32 [usertype]
   drivers/net/ethernet/aeroflex/greth.c:994:25: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got unsigned int * @@
   drivers/net/ethernet/aeroflex/greth.c:994:25: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/net/ethernet/aeroflex/greth.c:994:25: sparse:     got unsigned int *
   drivers/net/ethernet/aeroflex/greth.c:999:25: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] l @@     got restricted __be32 [usertype] @@
   drivers/net/ethernet/aeroflex/greth.c:999:25: sparse:     expected unsigned int [usertype] l
   drivers/net/ethernet/aeroflex/greth.c:999:25: sparse:     got restricted __be32 [usertype]
   drivers/net/ethernet/aeroflex/greth.c:999:25: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got unsigned int * @@
   drivers/net/ethernet/aeroflex/greth.c:999:25: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/net/ethernet/aeroflex/greth.c:999:25: sparse:     got unsigned int *
   drivers/net/ethernet/aeroflex/greth.c:1003:21: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got unsigned int * @@
   drivers/net/ethernet/aeroflex/greth.c:1003:21: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/net/ethernet/aeroflex/greth.c:1003:21: sparse:     got unsigned int *
   drivers/net/ethernet/aeroflex/greth.c:1003:21: sparse: sparse: cast to restricted __be32
   drivers/net/ethernet/aeroflex/greth.c:1004:25: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] l @@     got restricted __be32 [usertype] @@
   drivers/net/ethernet/aeroflex/greth.c:1004:25: sparse:     expected unsigned int [usertype] l
   drivers/net/ethernet/aeroflex/greth.c:1004:25: sparse:     got restricted __be32 [usertype]
   drivers/net/ethernet/aeroflex/greth.c:1004:25: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got unsigned int * @@
   drivers/net/ethernet/aeroflex/greth.c:1004:25: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/net/ethernet/aeroflex/greth.c:1004:25: sparse:     got unsigned int *
   drivers/net/ethernet/aeroflex/greth.c:1056:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] l @@     got restricted __be32 [usertype] @@
   drivers/net/ethernet/aeroflex/greth.c:1056:9: sparse:     expected unsigned int [usertype] l
   drivers/net/ethernet/aeroflex/greth.c:1056:9: sparse:     got restricted __be32 [usertype]
   drivers/net/ethernet/aeroflex/greth.c:1056:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got unsigned int * @@
   drivers/net/ethernet/aeroflex/greth.c:1056:9: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/net/ethernet/aeroflex/greth.c:1056:9: sparse:     got unsigned int *
   drivers/net/ethernet/aeroflex/greth.c:1057:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] l @@     got restricted __be32 [usertype] @@
   drivers/net/ethernet/aeroflex/greth.c:1057:9: sparse:     expected unsigned int [usertype] l
   drivers/net/ethernet/aeroflex/greth.c:1057:9: sparse:     got restricted __be32 [usertype]
   drivers/net/ethernet/aeroflex/greth.c:1057:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got unsigned int * @@
   drivers/net/ethernet/aeroflex/greth.c:1057:9: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/net/ethernet/aeroflex/greth.c:1057:9: sparse:     got unsigned int *
>> drivers/net/ethernet/aeroflex/greth.c:1128:52: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected unsigned int [usertype] *bd @@     got unsigned int [noderef] [usertype] __iomem * @@
   drivers/net/ethernet/aeroflex/greth.c:1128:52: sparse:     expected unsigned int [usertype] *bd
>> drivers/net/ethernet/aeroflex/greth.c:1128:52: sparse:     got unsigned int [noderef] [usertype] __iomem *
   drivers/net/ethernet/aeroflex/greth.c:1168:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] l @@     got restricted __be32 [usertype] @@
   drivers/net/ethernet/aeroflex/greth.c:1168:9: sparse:     expected unsigned int [usertype] l
   drivers/net/ethernet/aeroflex/greth.c:1168:9: sparse:     got restricted __be32 [usertype]
   drivers/net/ethernet/aeroflex/greth.c:1168:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got unsigned int * @@
   drivers/net/ethernet/aeroflex/greth.c:1168:9: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/net/ethernet/aeroflex/greth.c:1168:9: sparse:     got unsigned int *
   drivers/net/ethernet/aeroflex/greth.c:1173:15: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got unsigned int * @@
   drivers/net/ethernet/aeroflex/greth.c:1173:15: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/net/ethernet/aeroflex/greth.c:1173:15: sparse:     got unsigned int *
   drivers/net/ethernet/aeroflex/greth.c:1173:15: sparse: sparse: cast to restricted __be32
   drivers/net/ethernet/aeroflex/greth.c:1174:25: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got unsigned int * @@
   drivers/net/ethernet/aeroflex/greth.c:1174:25: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/net/ethernet/aeroflex/greth.c:1174:25: sparse:     got unsigned int *
   drivers/net/ethernet/aeroflex/greth.c:1174:25: sparse: sparse: cast to restricted __be32
   drivers/net/ethernet/aeroflex/greth.c:1189:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] l @@     got restricted __be32 [usertype] @@
   drivers/net/ethernet/aeroflex/greth.c:1189:9: sparse:     expected unsigned int [usertype] l
   drivers/net/ethernet/aeroflex/greth.c:1189:9: sparse:     got restricted __be32 [usertype]
   drivers/net/ethernet/aeroflex/greth.c:1189:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got unsigned int * @@
   drivers/net/ethernet/aeroflex/greth.c:1189:9: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/net/ethernet/aeroflex/greth.c:1189:9: sparse:     got unsigned int *
   drivers/net/ethernet/aeroflex/greth.c:1211:32: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got unsigned int * @@
   drivers/net/ethernet/aeroflex/greth.c:1211:32: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/net/ethernet/aeroflex/greth.c:1211:32: sparse:     got unsigned int *
   drivers/net/ethernet/aeroflex/greth.c:1211:32: sparse: sparse: cast to restricted __be32
   drivers/net/ethernet/aeroflex/greth.c:1222:25: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] l @@     got restricted __be32 [usertype] @@
   drivers/net/ethernet/aeroflex/greth.c:1222:25: sparse:     expected unsigned int [usertype] l
   drivers/net/ethernet/aeroflex/greth.c:1222:25: sparse:     got restricted __be32 [usertype]
   drivers/net/ethernet/aeroflex/greth.c:1222:25: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got unsigned int * @@
   drivers/net/ethernet/aeroflex/greth.c:1222:25: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/net/ethernet/aeroflex/greth.c:1222:25: sparse:     got unsigned int *
>> drivers/net/ethernet/aeroflex/greth.c:1367:21: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected struct greth_regs *regs @@     got void [noderef] __iomem * @@
   drivers/net/ethernet/aeroflex/greth.c:1367:21: sparse:     expected struct greth_regs *regs
>> drivers/net/ethernet/aeroflex/greth.c:1367:21: sparse:     got void [noderef] __iomem *
   drivers/net/ethernet/aeroflex/greth.c:1388:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] l @@     got restricted __be32 [usertype] @@
   drivers/net/ethernet/aeroflex/greth.c:1388:9: sparse:     expected unsigned int [usertype] l
   drivers/net/ethernet/aeroflex/greth.c:1388:9: sparse:     got restricted __be32 [usertype]
   drivers/net/ethernet/aeroflex/greth.c:1388:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got unsigned int * @@
   drivers/net/ethernet/aeroflex/greth.c:1388:9: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/net/ethernet/aeroflex/greth.c:1388:9: sparse:     got unsigned int *
   drivers/net/ethernet/aeroflex/greth.c:1392:16: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got unsigned int * @@
   drivers/net/ethernet/aeroflex/greth.c:1392:16: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/net/ethernet/aeroflex/greth.c:1392:16: sparse:     got unsigned int *
   drivers/net/ethernet/aeroflex/greth.c:1392:16: sparse: sparse: cast to restricted __be32
   drivers/net/ethernet/aeroflex/greth.c:1402:27: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got unsigned int * @@
   drivers/net/ethernet/aeroflex/greth.c:1402:27: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/net/ethernet/aeroflex/greth.c:1402:27: sparse:     got unsigned int *
   drivers/net/ethernet/aeroflex/greth.c:1402:27: sparse: sparse: cast to restricted __be32
   drivers/net/ethernet/aeroflex/greth.c:1405:15: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got unsigned int * @@
   drivers/net/ethernet/aeroflex/greth.c:1405:15: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/net/ethernet/aeroflex/greth.c:1405:15: sparse:     got unsigned int *
   drivers/net/ethernet/aeroflex/greth.c:1405:15: sparse: sparse: cast to restricted __be32
   drivers/net/ethernet/aeroflex/greth.c:1416:17: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got unsigned int * @@
   drivers/net/ethernet/aeroflex/greth.c:1416:17: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/net/ethernet/aeroflex/greth.c:1416:17: sparse:     got unsigned int *
   drivers/net/ethernet/aeroflex/greth.c:1416:17: sparse: sparse: cast to restricted __be32
   drivers/net/ethernet/aeroflex/greth.c:1416:17: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] l @@     got restricted __be32 [usertype] @@
   drivers/net/ethernet/aeroflex/greth.c:1416:17: sparse:     expected unsigned int [usertype] l
   drivers/net/ethernet/aeroflex/greth.c:1416:17: sparse:     got restricted __be32 [usertype]
   drivers/net/ethernet/aeroflex/greth.c:1416:17: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got unsigned int * @@
   drivers/net/ethernet/aeroflex/greth.c:1416:17: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/net/ethernet/aeroflex/greth.c:1416:17: sparse:     got unsigned int *
   drivers/net/ethernet/aeroflex/greth.c:1478:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] l @@     got restricted __be32 [usertype] @@
   drivers/net/ethernet/aeroflex/greth.c:1478:9: sparse:     expected unsigned int [usertype] l
   drivers/net/ethernet/aeroflex/greth.c:1478:9: sparse:     got restricted __be32 [usertype]
   drivers/net/ethernet/aeroflex/greth.c:1478:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got unsigned int * @@
   drivers/net/ethernet/aeroflex/greth.c:1478:9: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/net/ethernet/aeroflex/greth.c:1478:9: sparse:     got unsigned int *
   drivers/net/ethernet/aeroflex/greth.c:1479:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] l @@     got restricted __be32 [usertype] @@
   drivers/net/ethernet/aeroflex/greth.c:1479:9: sparse:     expected unsigned int [usertype] l
   drivers/net/ethernet/aeroflex/greth.c:1479:9: sparse:     got restricted __be32 [usertype]
   drivers/net/ethernet/aeroflex/greth.c:1479:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got unsigned int * @@
   drivers/net/ethernet/aeroflex/greth.c:1479:9: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/net/ethernet/aeroflex/greth.c:1479:9: sparse:     got unsigned int *
   drivers/net/ethernet/aeroflex/greth.c:1483:9: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] l @@     got restricted __be32 [usertype] @@
   drivers/net/ethernet/aeroflex/greth.c:1483:9: sparse:     expected unsigned int [usertype] l
   drivers/net/ethernet/aeroflex/greth.c:1483:9: sparse:     got restricted __be32 [usertype]
   drivers/net/ethernet/aeroflex/greth.c:1483:9: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got unsigned int * @@
   drivers/net/ethernet/aeroflex/greth.c:1483:9: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/net/ethernet/aeroflex/greth.c:1483:9: sparse:     got unsigned int *
>> drivers/net/ethernet/aeroflex/greth.c:1521:46: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void [noderef] __iomem *base @@     got struct greth_regs *regs @@
>> drivers/net/ethernet/aeroflex/greth.c:1521:46: sparse:     expected void [noderef] __iomem *base
   drivers/net/ethernet/aeroflex/greth.c:1521:46: sparse:     got struct greth_regs *regs
   drivers/net/ethernet/aeroflex/greth.c:1544:47: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void [noderef] __iomem *base @@     got struct greth_regs *regs @@
   drivers/net/ethernet/aeroflex/greth.c:1544:47: sparse:     expected void [noderef] __iomem *base
   drivers/net/ethernet/aeroflex/greth.c:1544:47: sparse:     got struct greth_regs *regs
>> drivers/net/ethernet/aeroflex/greth.c:162:16: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got unsigned int [usertype] *bd @@
   drivers/net/ethernet/aeroflex/greth.c:162:16: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/net/ethernet/aeroflex/greth.c:162:16: sparse:     got unsigned int [usertype] *bd
   drivers/net/ethernet/aeroflex/greth.c:162:16: sparse: sparse: cast to restricted __be32
>> drivers/net/ethernet/aeroflex/greth.c:162:16: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got unsigned int [usertype] *bd @@
   drivers/net/ethernet/aeroflex/greth.c:162:16: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/net/ethernet/aeroflex/greth.c:162:16: sparse:     got unsigned int [usertype] *bd
   drivers/net/ethernet/aeroflex/greth.c:162:16: sparse: sparse: cast to restricted __be32
>> drivers/net/ethernet/aeroflex/greth.c:162:16: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got unsigned int [usertype] *bd @@
   drivers/net/ethernet/aeroflex/greth.c:162:16: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/net/ethernet/aeroflex/greth.c:162:16: sparse:     got unsigned int [usertype] *bd
   drivers/net/ethernet/aeroflex/greth.c:162:16: sparse: sparse: cast to restricted __be32
>> drivers/net/ethernet/aeroflex/greth.c:162:16: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got unsigned int [usertype] *bd @@
   drivers/net/ethernet/aeroflex/greth.c:162:16: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/net/ethernet/aeroflex/greth.c:162:16: sparse:     got unsigned int [usertype] *bd
   drivers/net/ethernet/aeroflex/greth.c:162:16: sparse: sparse: cast to restricted __be32
>> drivers/net/ethernet/aeroflex/greth.c:162:16: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got unsigned int [usertype] *bd @@
   drivers/net/ethernet/aeroflex/greth.c:162:16: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/net/ethernet/aeroflex/greth.c:162:16: sparse:     got unsigned int [usertype] *bd
   drivers/net/ethernet/aeroflex/greth.c:162:16: sparse: sparse: cast to restricted __be32
   drivers/net/ethernet/aeroflex/greth.c:157:22: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] l @@     got restricted __be32 [usertype] @@
   drivers/net/ethernet/aeroflex/greth.c:157:22: sparse:     expected unsigned int [usertype] l
   drivers/net/ethernet/aeroflex/greth.c:157:22: sparse:     got restricted __be32 [usertype]
   drivers/net/ethernet/aeroflex/greth.c:157:40: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got unsigned int [usertype] *bd @@
   drivers/net/ethernet/aeroflex/greth.c:157:40: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/net/ethernet/aeroflex/greth.c:157:40: sparse:     got unsigned int [usertype] *bd
   drivers/net/ethernet/aeroflex/greth.c:157:22: sparse: sparse: incorrect type in argument 1 (different base types) @@     expected unsigned int [usertype] l @@     got restricted __be32 [usertype] @@
   drivers/net/ethernet/aeroflex/greth.c:157:22: sparse:     expected unsigned int [usertype] l
   drivers/net/ethernet/aeroflex/greth.c:157:22: sparse:     got restricted __be32 [usertype]
   drivers/net/ethernet/aeroflex/greth.c:157:40: sparse: sparse: too many warnings

vim +362 drivers/net/ethernet/aeroflex/greth.c

d4c41139df6e74 drivers/net/greth.c Kristoffer Glembo 2010-02-15  337  
d4c41139df6e74 drivers/net/greth.c Kristoffer Glembo 2010-02-15  338  static int greth_open(struct net_device *dev)
d4c41139df6e74 drivers/net/greth.c Kristoffer Glembo 2010-02-15  339  {
d4c41139df6e74 drivers/net/greth.c Kristoffer Glembo 2010-02-15  340  	struct greth_private *greth = netdev_priv(dev);
d4c41139df6e74 drivers/net/greth.c Kristoffer Glembo 2010-02-15  341  	int err;
d4c41139df6e74 drivers/net/greth.c Kristoffer Glembo 2010-02-15  342  
d4c41139df6e74 drivers/net/greth.c Kristoffer Glembo 2010-02-15  343  	err = greth_init_rings(greth);
d4c41139df6e74 drivers/net/greth.c Kristoffer Glembo 2010-02-15  344  	if (err) {
d4c41139df6e74 drivers/net/greth.c Kristoffer Glembo 2010-02-15  345  		if (netif_msg_ifup(greth))
d4c41139df6e74 drivers/net/greth.c Kristoffer Glembo 2010-02-15  346  			dev_err(&dev->dev, "Could not allocate memory for DMA rings\n");
d4c41139df6e74 drivers/net/greth.c Kristoffer Glembo 2010-02-15  347  		return err;
d4c41139df6e74 drivers/net/greth.c Kristoffer Glembo 2010-02-15  348  	}
d4c41139df6e74 drivers/net/greth.c Kristoffer Glembo 2010-02-15  349  
d4c41139df6e74 drivers/net/greth.c Kristoffer Glembo 2010-02-15  350  	err = request_irq(greth->irq, greth_interrupt, 0, "eth", (void *) dev);
d4c41139df6e74 drivers/net/greth.c Kristoffer Glembo 2010-02-15  351  	if (err) {
d4c41139df6e74 drivers/net/greth.c Kristoffer Glembo 2010-02-15  352  		if (netif_msg_ifup(greth))
d4c41139df6e74 drivers/net/greth.c Kristoffer Glembo 2010-02-15  353  			dev_err(&dev->dev, "Could not allocate interrupt %d\n", dev->irq);
d4c41139df6e74 drivers/net/greth.c Kristoffer Glembo 2010-02-15  354  		greth_clean_rings(greth);
d4c41139df6e74 drivers/net/greth.c Kristoffer Glembo 2010-02-15  355  		return err;
d4c41139df6e74 drivers/net/greth.c Kristoffer Glembo 2010-02-15  356  	}
d4c41139df6e74 drivers/net/greth.c Kristoffer Glembo 2010-02-15  357  
d4c41139df6e74 drivers/net/greth.c Kristoffer Glembo 2010-02-15  358  	if (netif_msg_ifup(greth))
d4c41139df6e74 drivers/net/greth.c Kristoffer Glembo 2010-02-15  359  		dev_dbg(&dev->dev, " starting queue\n");
d4c41139df6e74 drivers/net/greth.c Kristoffer Glembo 2010-02-15  360  	netif_start_queue(dev);
d4c41139df6e74 drivers/net/greth.c Kristoffer Glembo 2010-02-15  361  
bbe9e637330abe drivers/net/greth.c Daniel Hellstrom  2011-01-14 @362  	GRETH_REGSAVE(greth->regs->status, 0xFF);
bbe9e637330abe drivers/net/greth.c Daniel Hellstrom  2011-01-14  363  
d4c41139df6e74 drivers/net/greth.c Kristoffer Glembo 2010-02-15  364  	napi_enable(&greth->napi);
d4c41139df6e74 drivers/net/greth.c Kristoffer Glembo 2010-02-15  365  
d4c41139df6e74 drivers/net/greth.c Kristoffer Glembo 2010-02-15  366  	greth_enable_irqs(greth);
d4c41139df6e74 drivers/net/greth.c Kristoffer Glembo 2010-02-15  367  	greth_enable_tx(greth);
d4c41139df6e74 drivers/net/greth.c Kristoffer Glembo 2010-02-15  368  	greth_enable_rx(greth);
d4c41139df6e74 drivers/net/greth.c Kristoffer Glembo 2010-02-15  369  	return 0;
d4c41139df6e74 drivers/net/greth.c Kristoffer Glembo 2010-02-15  370  

:::::: The code at line 362 was first introduced by commit
:::::: bbe9e637330abe55442aebe799425e224086959f GRETH: fix opening/closing

:::::: TO: Daniel Hellstrom <daniel@...sler.com>
:::::: CC: David S. Miller <davem@...emloft.net>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org

Download attachment ".config.gz" of type "application/gzip" (28793 bytes)

Powered by blists - more mailing lists