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:   Sat, 8 Aug 2020 08:48:26 +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/natsemi/sonic.h:356:55: 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:   30185b69a2d533c4ba6ca926b8390ce7de495e29
commit: 670d0a4b10704667765f7d18f7592993d02783aa sparse: use identifiers to define address spaces
date:   7 weeks ago
config: xtensa-randconfig-s031-20200808 (attached as .config)
compiler: xtensa-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=xtensa 

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/natsemi/xtsonic.c:198:5: sparse: sparse: symbol 'xtsonic_probe' was not declared. Should it be static?
   drivers/net/ethernet/natsemi/xtsonic.c: note: in included file:
>> drivers/net/ethernet/natsemi/sonic.h:356:55: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got unsigned short [usertype] * @@
>> drivers/net/ethernet/natsemi/sonic.h:356:55: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/net/ethernet/natsemi/sonic.h:356:55: sparse:     got unsigned short [usertype] *
   drivers/net/ethernet/natsemi/sonic.h:361:55: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got unsigned short [usertype] * @@
   drivers/net/ethernet/natsemi/sonic.h:361:55: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/net/ethernet/natsemi/sonic.h:361:55: sparse:     got unsigned short [usertype] *
>> drivers/net/ethernet/natsemi/sonic.h:356:55: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got unsigned short [usertype] * @@
>> drivers/net/ethernet/natsemi/sonic.h:356:55: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/net/ethernet/natsemi/sonic.h:356:55: sparse:     got unsigned short [usertype] *
   drivers/net/ethernet/natsemi/sonic.h:361:55: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got unsigned short [usertype] * @@
   drivers/net/ethernet/natsemi/sonic.h:361:55: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/net/ethernet/natsemi/sonic.h:361:55: sparse:     got unsigned short [usertype] *
>> drivers/net/ethernet/natsemi/sonic.h:356:55: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got unsigned short [usertype] * @@
>> drivers/net/ethernet/natsemi/sonic.h:356:55: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/net/ethernet/natsemi/sonic.h:356:55: sparse:     got unsigned short [usertype] *
   drivers/net/ethernet/natsemi/sonic.h:361:55: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got unsigned short [usertype] * @@
   drivers/net/ethernet/natsemi/sonic.h:361:55: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/net/ethernet/natsemi/sonic.h:361:55: sparse:     got unsigned short [usertype] *
>> drivers/net/ethernet/natsemi/sonic.h:356:55: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got unsigned short [usertype] * @@
>> drivers/net/ethernet/natsemi/sonic.h:356:55: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/net/ethernet/natsemi/sonic.h:356:55: sparse:     got unsigned short [usertype] *
   drivers/net/ethernet/natsemi/sonic.h:361:55: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got unsigned short [usertype] * @@
   drivers/net/ethernet/natsemi/sonic.h:361:55: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/net/ethernet/natsemi/sonic.h:361:55: sparse:     got unsigned short [usertype] *
>> drivers/net/ethernet/natsemi/sonic.h:356:55: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got unsigned short [usertype] * @@
>> drivers/net/ethernet/natsemi/sonic.h:356:55: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/net/ethernet/natsemi/sonic.h:356:55: sparse:     got unsigned short [usertype] *
   drivers/net/ethernet/natsemi/sonic.h:361:55: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got unsigned short [usertype] * @@
   drivers/net/ethernet/natsemi/sonic.h:361:55: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/net/ethernet/natsemi/sonic.h:361:55: sparse:     got unsigned short [usertype] *
>> drivers/net/ethernet/natsemi/sonic.h:356:55: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got unsigned short [usertype] * @@
>> drivers/net/ethernet/natsemi/sonic.h:356:55: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/net/ethernet/natsemi/sonic.h:356:55: sparse:     got unsigned short [usertype] *
   drivers/net/ethernet/natsemi/sonic.h:361:55: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got unsigned short [usertype] * @@
   drivers/net/ethernet/natsemi/sonic.h:361:55: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/net/ethernet/natsemi/sonic.h:361:55: sparse:     got unsigned short [usertype] *
>> drivers/net/ethernet/natsemi/sonic.h:369:56: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got unsigned short [usertype] * @@
>> drivers/net/ethernet/natsemi/sonic.h:369:56: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/net/ethernet/natsemi/sonic.h:369:56: sparse:     got unsigned short [usertype] *
   drivers/net/ethernet/natsemi/sonic.h:374:56: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got unsigned short [usertype] * @@
   drivers/net/ethernet/natsemi/sonic.h:374:56: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/net/ethernet/natsemi/sonic.h:374:56: sparse:     got unsigned short [usertype] *
>> drivers/net/ethernet/natsemi/sonic.h:356:55: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got unsigned short [usertype] * @@
>> drivers/net/ethernet/natsemi/sonic.h:356:55: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/net/ethernet/natsemi/sonic.h:356:55: sparse:     got unsigned short [usertype] *
   drivers/net/ethernet/natsemi/sonic.h:361:55: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got unsigned short [usertype] * @@
   drivers/net/ethernet/natsemi/sonic.h:361:55: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/net/ethernet/natsemi/sonic.h:361:55: sparse:     got unsigned short [usertype] *
>> drivers/net/ethernet/natsemi/sonic.h:369:56: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got unsigned short [usertype] * @@
>> drivers/net/ethernet/natsemi/sonic.h:369:56: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/net/ethernet/natsemi/sonic.h:369:56: sparse:     got unsigned short [usertype] *
   drivers/net/ethernet/natsemi/sonic.h:374:56: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got unsigned short [usertype] * @@
   drivers/net/ethernet/natsemi/sonic.h:374:56: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/net/ethernet/natsemi/sonic.h:374:56: sparse:     got unsigned short [usertype] *
>> drivers/net/ethernet/natsemi/sonic.h:356:55: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got unsigned short [usertype] * @@
>> drivers/net/ethernet/natsemi/sonic.h:356:55: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/net/ethernet/natsemi/sonic.h:356:55: sparse:     got unsigned short [usertype] *
   drivers/net/ethernet/natsemi/sonic.h:361:55: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got unsigned short [usertype] * @@
   drivers/net/ethernet/natsemi/sonic.h:361:55: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/net/ethernet/natsemi/sonic.h:361:55: sparse:     got unsigned short [usertype] *
>> drivers/net/ethernet/natsemi/sonic.h:369:56: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got unsigned short [usertype] * @@
>> drivers/net/ethernet/natsemi/sonic.h:369:56: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/net/ethernet/natsemi/sonic.h:369:56: sparse:     got unsigned short [usertype] *
   drivers/net/ethernet/natsemi/sonic.h:374:56: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got unsigned short [usertype] * @@
   drivers/net/ethernet/natsemi/sonic.h:374:56: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/net/ethernet/natsemi/sonic.h:374:56: sparse:     got unsigned short [usertype] *
>> drivers/net/ethernet/natsemi/sonic.h:369:56: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got unsigned short [usertype] * @@
>> drivers/net/ethernet/natsemi/sonic.h:369:56: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/net/ethernet/natsemi/sonic.h:369:56: sparse:     got unsigned short [usertype] *
   drivers/net/ethernet/natsemi/sonic.h:374:56: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got unsigned short [usertype] * @@
   drivers/net/ethernet/natsemi/sonic.h:374:56: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/net/ethernet/natsemi/sonic.h:374:56: sparse:     got unsigned short [usertype] *
>> drivers/net/ethernet/natsemi/sonic.h:369:56: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got unsigned short [usertype] * @@
>> drivers/net/ethernet/natsemi/sonic.h:369:56: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/net/ethernet/natsemi/sonic.h:369:56: sparse:     got unsigned short [usertype] *
   drivers/net/ethernet/natsemi/sonic.h:374:56: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got unsigned short [usertype] * @@
   drivers/net/ethernet/natsemi/sonic.h:374:56: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/net/ethernet/natsemi/sonic.h:374:56: sparse:     got unsigned short [usertype] *
>> drivers/net/ethernet/natsemi/sonic.h:369:56: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got unsigned short [usertype] * @@
>> drivers/net/ethernet/natsemi/sonic.h:369:56: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/net/ethernet/natsemi/sonic.h:369:56: sparse:     got unsigned short [usertype] *
   drivers/net/ethernet/natsemi/sonic.h:374:56: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got unsigned short [usertype] * @@
   drivers/net/ethernet/natsemi/sonic.h:374:56: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/net/ethernet/natsemi/sonic.h:374:56: sparse:     got unsigned short [usertype] *
>> drivers/net/ethernet/natsemi/sonic.h:369:56: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got unsigned short [usertype] * @@
>> drivers/net/ethernet/natsemi/sonic.h:369:56: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/net/ethernet/natsemi/sonic.h:369:56: sparse:     got unsigned short [usertype] *
   drivers/net/ethernet/natsemi/sonic.h:374:56: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got unsigned short [usertype] * @@
   drivers/net/ethernet/natsemi/sonic.h:374:56: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/net/ethernet/natsemi/sonic.h:374:56: sparse:     got unsigned short [usertype] *
>> drivers/net/ethernet/natsemi/sonic.h:356:55: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got unsigned short [usertype] * @@
>> drivers/net/ethernet/natsemi/sonic.h:356:55: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/net/ethernet/natsemi/sonic.h:356:55: sparse:     got unsigned short [usertype] *
   drivers/net/ethernet/natsemi/sonic.h:361:55: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got unsigned short [usertype] * @@
   drivers/net/ethernet/natsemi/sonic.h:361:55: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/net/ethernet/natsemi/sonic.h:361:55: sparse:     got unsigned short [usertype] *
>> drivers/net/ethernet/natsemi/sonic.h:356:55: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got unsigned short [usertype] * @@
>> drivers/net/ethernet/natsemi/sonic.h:356:55: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/net/ethernet/natsemi/sonic.h:356:55: sparse:     got unsigned short [usertype] *
   drivers/net/ethernet/natsemi/sonic.h:361:55: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got unsigned short [usertype] * @@
   drivers/net/ethernet/natsemi/sonic.h:361:55: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/net/ethernet/natsemi/sonic.h:361:55: sparse:     got unsigned short [usertype] *
>> drivers/net/ethernet/natsemi/sonic.h:369:56: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got unsigned short [usertype] * @@
>> drivers/net/ethernet/natsemi/sonic.h:369:56: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/net/ethernet/natsemi/sonic.h:369:56: sparse:     got unsigned short [usertype] *
   drivers/net/ethernet/natsemi/sonic.h:374:56: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got unsigned short [usertype] * @@
   drivers/net/ethernet/natsemi/sonic.h:374:56: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/net/ethernet/natsemi/sonic.h:374:56: sparse:     got unsigned short [usertype] *
>> drivers/net/ethernet/natsemi/sonic.h:369:56: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got unsigned short [usertype] * @@
>> drivers/net/ethernet/natsemi/sonic.h:369:56: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/net/ethernet/natsemi/sonic.h:369:56: sparse:     got unsigned short [usertype] *
   drivers/net/ethernet/natsemi/sonic.h:374:56: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got unsigned short [usertype] * @@
   drivers/net/ethernet/natsemi/sonic.h:374:56: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/net/ethernet/natsemi/sonic.h:374:56: sparse:     got unsigned short [usertype] *
>> drivers/net/ethernet/natsemi/sonic.h:369:56: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got unsigned short [usertype] * @@
>> drivers/net/ethernet/natsemi/sonic.h:369:56: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/net/ethernet/natsemi/sonic.h:369:56: sparse:     got unsigned short [usertype] *
   drivers/net/ethernet/natsemi/sonic.h:374:56: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got unsigned short [usertype] * @@
   drivers/net/ethernet/natsemi/sonic.h:374:56: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/net/ethernet/natsemi/sonic.h:374:56: sparse:     got unsigned short [usertype] *
>> drivers/net/ethernet/natsemi/sonic.h:369:56: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got unsigned short [usertype] * @@
>> drivers/net/ethernet/natsemi/sonic.h:369:56: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/net/ethernet/natsemi/sonic.h:369:56: sparse:     got unsigned short [usertype] *
   drivers/net/ethernet/natsemi/sonic.h:374:56: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got unsigned short [usertype] * @@
   drivers/net/ethernet/natsemi/sonic.h:374:56: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/net/ethernet/natsemi/sonic.h:374:56: sparse:     got unsigned short [usertype] *
>> drivers/net/ethernet/natsemi/sonic.h:369:56: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got unsigned short [usertype] * @@
>> drivers/net/ethernet/natsemi/sonic.h:369:56: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/net/ethernet/natsemi/sonic.h:369:56: sparse:     got unsigned short [usertype] *
   drivers/net/ethernet/natsemi/sonic.h:374:56: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got unsigned short [usertype] * @@
   drivers/net/ethernet/natsemi/sonic.h:374:56: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/net/ethernet/natsemi/sonic.h:374:56: sparse:     got unsigned short [usertype] *
>> drivers/net/ethernet/natsemi/sonic.h:356:55: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got unsigned short [usertype] * @@
>> drivers/net/ethernet/natsemi/sonic.h:356:55: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/net/ethernet/natsemi/sonic.h:356:55: sparse:     got unsigned short [usertype] *
   drivers/net/ethernet/natsemi/sonic.h:361:55: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got unsigned short [usertype] * @@
   drivers/net/ethernet/natsemi/sonic.h:361:55: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/net/ethernet/natsemi/sonic.h:361:55: sparse:     got unsigned short [usertype] *
>> drivers/net/ethernet/natsemi/sonic.h:356:55: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got unsigned short [usertype] * @@
>> drivers/net/ethernet/natsemi/sonic.h:356:55: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/net/ethernet/natsemi/sonic.h:356:55: sparse:     got unsigned short [usertype] *
   drivers/net/ethernet/natsemi/sonic.h:361:55: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got unsigned short [usertype] * @@
   drivers/net/ethernet/natsemi/sonic.h:361:55: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/net/ethernet/natsemi/sonic.h:361:55: sparse:     got unsigned short [usertype] *
>> drivers/net/ethernet/natsemi/sonic.h:369:56: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got unsigned short [usertype] * @@
>> drivers/net/ethernet/natsemi/sonic.h:369:56: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/net/ethernet/natsemi/sonic.h:369:56: sparse:     got unsigned short [usertype] *
   drivers/net/ethernet/natsemi/sonic.h:374:56: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got unsigned short [usertype] * @@
   drivers/net/ethernet/natsemi/sonic.h:374:56: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/net/ethernet/natsemi/sonic.h:374:56: sparse:     got unsigned short [usertype] *
>> drivers/net/ethernet/natsemi/sonic.h:356:55: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got unsigned short [usertype] * @@
>> drivers/net/ethernet/natsemi/sonic.h:356:55: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/net/ethernet/natsemi/sonic.h:356:55: sparse:     got unsigned short [usertype] *
   drivers/net/ethernet/natsemi/sonic.h:361:55: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got unsigned short [usertype] * @@
   drivers/net/ethernet/natsemi/sonic.h:361:55: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/net/ethernet/natsemi/sonic.h:361:55: sparse:     got unsigned short [usertype] *
>> drivers/net/ethernet/natsemi/sonic.h:369:56: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got unsigned short [usertype] * @@
>> drivers/net/ethernet/natsemi/sonic.h:369:56: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/net/ethernet/natsemi/sonic.h:369:56: sparse:     got unsigned short [usertype] *
   drivers/net/ethernet/natsemi/sonic.h:374:56: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got unsigned short [usertype] * @@
   drivers/net/ethernet/natsemi/sonic.h:374:56: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/net/ethernet/natsemi/sonic.h:374:56: sparse:     got unsigned short [usertype] *
>> drivers/net/ethernet/natsemi/sonic.h:356:55: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got unsigned short [usertype] * @@
>> drivers/net/ethernet/natsemi/sonic.h:356:55: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/net/ethernet/natsemi/sonic.h:356:55: sparse:     got unsigned short [usertype] *
   drivers/net/ethernet/natsemi/sonic.h:361:55: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got unsigned short [usertype] * @@
   drivers/net/ethernet/natsemi/sonic.h:361:55: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/net/ethernet/natsemi/sonic.h:361:55: sparse:     got unsigned short [usertype] *
>> drivers/net/ethernet/natsemi/sonic.h:356:55: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got unsigned short [usertype] * @@
>> drivers/net/ethernet/natsemi/sonic.h:356:55: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/net/ethernet/natsemi/sonic.h:356:55: sparse:     got unsigned short [usertype] *
   drivers/net/ethernet/natsemi/sonic.h:361:55: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got unsigned short [usertype] * @@
   drivers/net/ethernet/natsemi/sonic.h:361:55: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/net/ethernet/natsemi/sonic.h:361:55: sparse:     got unsigned short [usertype] *
>> drivers/net/ethernet/natsemi/sonic.h:356:55: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got unsigned short [usertype] * @@
>> drivers/net/ethernet/natsemi/sonic.h:356:55: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/net/ethernet/natsemi/sonic.h:356:55: sparse:     got unsigned short [usertype] *
   drivers/net/ethernet/natsemi/sonic.h:361:55: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got unsigned short [usertype] * @@
   drivers/net/ethernet/natsemi/sonic.h:361:55: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/net/ethernet/natsemi/sonic.h:361:55: sparse:     got unsigned short [usertype] *
>> drivers/net/ethernet/natsemi/sonic.h:356:55: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got unsigned short [usertype] * @@
>> drivers/net/ethernet/natsemi/sonic.h:356:55: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/net/ethernet/natsemi/sonic.h:356:55: sparse:     got unsigned short [usertype] *
   drivers/net/ethernet/natsemi/sonic.h:361:55: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got unsigned short [usertype] * @@
   drivers/net/ethernet/natsemi/sonic.h:361:55: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/net/ethernet/natsemi/sonic.h:361:55: sparse:     got unsigned short [usertype] *
>> drivers/net/ethernet/natsemi/sonic.h:356:55: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got unsigned short [usertype] * @@
>> drivers/net/ethernet/natsemi/sonic.h:356:55: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/net/ethernet/natsemi/sonic.h:356:55: sparse:     got unsigned short [usertype] *
   drivers/net/ethernet/natsemi/sonic.h:361:55: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got unsigned short [usertype] * @@
   drivers/net/ethernet/natsemi/sonic.h:361:55: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/net/ethernet/natsemi/sonic.h:361:55: sparse:     got unsigned short [usertype] *
>> drivers/net/ethernet/natsemi/sonic.h:369:56: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got unsigned short [usertype] * @@
>> drivers/net/ethernet/natsemi/sonic.h:369:56: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/net/ethernet/natsemi/sonic.h:369:56: sparse:     got unsigned short [usertype] *
   drivers/net/ethernet/natsemi/sonic.h:374:56: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got unsigned short [usertype] * @@
   drivers/net/ethernet/natsemi/sonic.h:374:56: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/net/ethernet/natsemi/sonic.h:374:56: sparse:     got unsigned short [usertype] *
>> drivers/net/ethernet/natsemi/sonic.h:356:55: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got unsigned short [usertype] * @@
>> drivers/net/ethernet/natsemi/sonic.h:356:55: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/net/ethernet/natsemi/sonic.h:356:55: sparse:     got unsigned short [usertype] *
   drivers/net/ethernet/natsemi/sonic.h:361:55: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got unsigned short [usertype] * @@
   drivers/net/ethernet/natsemi/sonic.h:361:55: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/net/ethernet/natsemi/sonic.h:361:55: sparse:     got unsigned short [usertype] *
>> drivers/net/ethernet/natsemi/sonic.h:356:55: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got unsigned short [usertype] * @@
>> drivers/net/ethernet/natsemi/sonic.h:356:55: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/net/ethernet/natsemi/sonic.h:356:55: sparse:     got unsigned short [usertype] *
   drivers/net/ethernet/natsemi/sonic.h:361:55: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got unsigned short [usertype] * @@
   drivers/net/ethernet/natsemi/sonic.h:361:55: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/net/ethernet/natsemi/sonic.h:361:55: sparse:     got unsigned short [usertype] *
>> drivers/net/ethernet/natsemi/sonic.h:356:55: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got unsigned short [usertype] * @@
>> drivers/net/ethernet/natsemi/sonic.h:356:55: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/net/ethernet/natsemi/sonic.h:356:55: sparse:     got unsigned short [usertype] *
   drivers/net/ethernet/natsemi/sonic.h:361:55: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got unsigned short [usertype] * @@
   drivers/net/ethernet/natsemi/sonic.h:361:55: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/net/ethernet/natsemi/sonic.h:361:55: sparse:     got unsigned short [usertype] *
>> drivers/net/ethernet/natsemi/sonic.h:356:55: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got unsigned short [usertype] * @@
>> drivers/net/ethernet/natsemi/sonic.h:356:55: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/net/ethernet/natsemi/sonic.h:356:55: sparse:     got unsigned short [usertype] *
   drivers/net/ethernet/natsemi/sonic.h:361:55: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got unsigned short [usertype] * @@
   drivers/net/ethernet/natsemi/sonic.h:361:55: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/net/ethernet/natsemi/sonic.h:361:55: sparse:     got unsigned short [usertype] *
>> drivers/net/ethernet/natsemi/sonic.h:356:55: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got unsigned short [usertype] * @@
>> drivers/net/ethernet/natsemi/sonic.h:356:55: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/net/ethernet/natsemi/sonic.h:356:55: sparse:     got unsigned short [usertype] *
   drivers/net/ethernet/natsemi/sonic.h:361:55: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got unsigned short [usertype] * @@
   drivers/net/ethernet/natsemi/sonic.h:361:55: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/net/ethernet/natsemi/sonic.h:361:55: sparse:     got unsigned short [usertype] *
>> drivers/net/ethernet/natsemi/sonic.h:356:55: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got unsigned short [usertype] * @@
>> drivers/net/ethernet/natsemi/sonic.h:356:55: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/net/ethernet/natsemi/sonic.h:356:55: sparse:     got unsigned short [usertype] *
   drivers/net/ethernet/natsemi/sonic.h:361:55: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got unsigned short [usertype] * @@
   drivers/net/ethernet/natsemi/sonic.h:361:55: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/net/ethernet/natsemi/sonic.h:361:55: sparse:     got unsigned short [usertype] *
>> drivers/net/ethernet/natsemi/sonic.h:356:55: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got unsigned short [usertype] * @@
>> drivers/net/ethernet/natsemi/sonic.h:356:55: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/net/ethernet/natsemi/sonic.h:356:55: sparse:     got unsigned short [usertype] *
   drivers/net/ethernet/natsemi/sonic.h:361:55: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got unsigned short [usertype] * @@
   drivers/net/ethernet/natsemi/sonic.h:361:55: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/net/ethernet/natsemi/sonic.h:361:55: sparse:     got unsigned short [usertype] *
>> drivers/net/ethernet/natsemi/sonic.h:356:55: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got unsigned short [usertype] * @@
>> drivers/net/ethernet/natsemi/sonic.h:356:55: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/net/ethernet/natsemi/sonic.h:356:55: sparse:     got unsigned short [usertype] *
   drivers/net/ethernet/natsemi/sonic.h:361:55: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got unsigned short [usertype] * @@
   drivers/net/ethernet/natsemi/sonic.h:361:55: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/net/ethernet/natsemi/sonic.h:361:55: sparse:     got unsigned short [usertype] *
>> drivers/net/ethernet/natsemi/sonic.h:356:55: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got unsigned short [usertype] * @@
>> drivers/net/ethernet/natsemi/sonic.h:356:55: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/net/ethernet/natsemi/sonic.h:356:55: sparse:     got unsigned short [usertype] *
   drivers/net/ethernet/natsemi/sonic.h:361:55: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got unsigned short [usertype] * @@
   drivers/net/ethernet/natsemi/sonic.h:361:55: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/net/ethernet/natsemi/sonic.h:361:55: sparse:     got unsigned short [usertype] *
>> drivers/net/ethernet/natsemi/sonic.h:356:55: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got unsigned short [usertype] * @@
>> drivers/net/ethernet/natsemi/sonic.h:356:55: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/net/ethernet/natsemi/sonic.h:356:55: sparse:     got unsigned short [usertype] *
   drivers/net/ethernet/natsemi/sonic.h:361:55: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got unsigned short [usertype] * @@
   drivers/net/ethernet/natsemi/sonic.h:361:55: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/net/ethernet/natsemi/sonic.h:361:55: sparse:     got unsigned short [usertype] *
>> drivers/net/ethernet/natsemi/sonic.h:356:55: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got unsigned short [usertype] * @@
>> drivers/net/ethernet/natsemi/sonic.h:356:55: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/net/ethernet/natsemi/sonic.h:356:55: sparse:     got unsigned short [usertype] *
   drivers/net/ethernet/natsemi/sonic.h:361:55: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got unsigned short [usertype] * @@
   drivers/net/ethernet/natsemi/sonic.h:361:55: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/net/ethernet/natsemi/sonic.h:361:55: sparse:     got unsigned short [usertype] *
>> drivers/net/ethernet/natsemi/sonic.h:356:55: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got unsigned short [usertype] * @@
>> drivers/net/ethernet/natsemi/sonic.h:356:55: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/net/ethernet/natsemi/sonic.h:356:55: sparse:     got unsigned short [usertype] *
   drivers/net/ethernet/natsemi/sonic.h:361:55: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got unsigned short [usertype] * @@
   drivers/net/ethernet/natsemi/sonic.h:361:55: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/net/ethernet/natsemi/sonic.h:361:55: sparse:     got unsigned short [usertype] *
>> drivers/net/ethernet/natsemi/sonic.h:356:55: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got unsigned short [usertype] * @@
>> drivers/net/ethernet/natsemi/sonic.h:356:55: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/net/ethernet/natsemi/sonic.h:356:55: sparse:     got unsigned short [usertype] *
   drivers/net/ethernet/natsemi/sonic.h:361:55: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got unsigned short [usertype] * @@
   drivers/net/ethernet/natsemi/sonic.h:361:55: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/net/ethernet/natsemi/sonic.h:361:55: sparse:     got unsigned short [usertype] *
>> drivers/net/ethernet/natsemi/sonic.h:356:55: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got unsigned short [usertype] * @@
>> drivers/net/ethernet/natsemi/sonic.h:356:55: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/net/ethernet/natsemi/sonic.h:356:55: sparse:     got unsigned short [usertype] *
   drivers/net/ethernet/natsemi/sonic.h:361:55: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got unsigned short [usertype] * @@
   drivers/net/ethernet/natsemi/sonic.h:361:55: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/net/ethernet/natsemi/sonic.h:361:55: sparse:     got unsigned short [usertype] *
>> drivers/net/ethernet/natsemi/sonic.h:356:55: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got unsigned short [usertype] * @@
>> drivers/net/ethernet/natsemi/sonic.h:356:55: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/net/ethernet/natsemi/sonic.h:356:55: sparse:     got unsigned short [usertype] *
   drivers/net/ethernet/natsemi/sonic.h:361:55: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got unsigned short [usertype] * @@
   drivers/net/ethernet/natsemi/sonic.h:361:55: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/net/ethernet/natsemi/sonic.h:361:55: sparse:     got unsigned short [usertype] *
>> drivers/net/ethernet/natsemi/sonic.h:356:55: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got unsigned short [usertype] * @@
>> drivers/net/ethernet/natsemi/sonic.h:356:55: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/net/ethernet/natsemi/sonic.h:356:55: sparse:     got unsigned short [usertype] *
   drivers/net/ethernet/natsemi/sonic.h:361:55: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got unsigned short [usertype] * @@
   drivers/net/ethernet/natsemi/sonic.h:361:55: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/net/ethernet/natsemi/sonic.h:361:55: sparse:     got unsigned short [usertype] *
   drivers/net/ethernet/natsemi/sonic.h:356:55: sparse: sparse: too many warnings

vim +356 drivers/net/ethernet/natsemi/sonic.h

^1da177e4c3f41 drivers/net/sonic.h                  Linus Torvalds 2005-04-16  345  
efcce839360fb3 drivers/net/sonic.h                  Finn Thain     2005-08-20  346  /* Internal inlines for reading/writing DMA buffers.  Note that bus
efcce839360fb3 drivers/net/sonic.h                  Finn Thain     2005-08-20  347     size and endianness matter here, whereas they don't for registers,
efcce839360fb3 drivers/net/sonic.h                  Finn Thain     2005-08-20  348     as far as we can tell. */
efcce839360fb3 drivers/net/sonic.h                  Finn Thain     2005-08-20  349  /* OpenBSD calls this "SWO".  I'd like to think that sonic_buf_put()
efcce839360fb3 drivers/net/sonic.h                  Finn Thain     2005-08-20  350     is a much better name. */
e3885f576196dd drivers/net/ethernet/natsemi/sonic.h Finn Thain     2020-01-23  351  static inline void sonic_buf_put(u16 *base, int bitmode,
efcce839360fb3 drivers/net/sonic.h                  Finn Thain     2005-08-20  352  				 int offset, __u16 val)
efcce839360fb3 drivers/net/sonic.h                  Finn Thain     2005-08-20  353  {
efcce839360fb3 drivers/net/sonic.h                  Finn Thain     2005-08-20  354  	if (bitmode)
efcce839360fb3 drivers/net/sonic.h                  Finn Thain     2005-08-20  355  #ifdef __BIG_ENDIAN
e3885f576196dd drivers/net/ethernet/natsemi/sonic.h Finn Thain     2020-01-23 @356  		__raw_writew(val, base + (offset * 2) + 1);
efcce839360fb3 drivers/net/sonic.h                  Finn Thain     2005-08-20  357  #else
e3885f576196dd drivers/net/ethernet/natsemi/sonic.h Finn Thain     2020-01-23  358  		__raw_writew(val, base + (offset * 2) + 0);
efcce839360fb3 drivers/net/sonic.h                  Finn Thain     2005-08-20  359  #endif
efcce839360fb3 drivers/net/sonic.h                  Finn Thain     2005-08-20  360  	else
e3885f576196dd drivers/net/ethernet/natsemi/sonic.h Finn Thain     2020-01-23  361  		__raw_writew(val, base + (offset * 1) + 0);
efcce839360fb3 drivers/net/sonic.h                  Finn Thain     2005-08-20  362  }
efcce839360fb3 drivers/net/sonic.h                  Finn Thain     2005-08-20  363  
e3885f576196dd drivers/net/ethernet/natsemi/sonic.h Finn Thain     2020-01-23  364  static inline __u16 sonic_buf_get(u16 *base, int bitmode,
efcce839360fb3 drivers/net/sonic.h                  Finn Thain     2005-08-20  365  				  int offset)
efcce839360fb3 drivers/net/sonic.h                  Finn Thain     2005-08-20  366  {
efcce839360fb3 drivers/net/sonic.h                  Finn Thain     2005-08-20  367  	if (bitmode)
efcce839360fb3 drivers/net/sonic.h                  Finn Thain     2005-08-20  368  #ifdef __BIG_ENDIAN
e3885f576196dd drivers/net/ethernet/natsemi/sonic.h Finn Thain     2020-01-23 @369  		return __raw_readw(base + (offset * 2) + 1);
efcce839360fb3 drivers/net/sonic.h                  Finn Thain     2005-08-20  370  #else
e3885f576196dd drivers/net/ethernet/natsemi/sonic.h Finn Thain     2020-01-23  371  		return __raw_readw(base + (offset * 2) + 0);
efcce839360fb3 drivers/net/sonic.h                  Finn Thain     2005-08-20  372  #endif
efcce839360fb3 drivers/net/sonic.h                  Finn Thain     2005-08-20  373  	else
e3885f576196dd drivers/net/ethernet/natsemi/sonic.h Finn Thain     2020-01-23  374  		return __raw_readw(base + (offset * 1) + 0);
efcce839360fb3 drivers/net/sonic.h                  Finn Thain     2005-08-20  375  }
efcce839360fb3 drivers/net/sonic.h                  Finn Thain     2005-08-20  376  

:::::: The code at line 356 was first introduced by commit
:::::: e3885f576196ddfc670b3d53e745de96ffcb49ab net/sonic: Use MMIO accessors

:::::: TO: Finn Thain <fthain@...egraphics.com.au>
:::::: 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" (30313 bytes)

Powered by blists - more mailing lists