drivers/net/ethernet/korina.c:391:20: sparse: sparse: incorrect type in argument 1 (different address spaces)
From: kernel test robot
Date: Tue May 18 2021 - 09:53:12 EST
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 8ac91e6c6033ebc12c5c1e4aa171b81a662bd70f
commit: 6ef92063bf94cd8a6fa9fea3a82596955eb25424 net: korina: Make driver COMPILE_TESTable
date: 4 weeks ago
config: mips-allyesconfig (attached as .config)
compiler: mips-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/torvalds/linux.git/commit/?id=6ef92063bf94cd8a6fa9fea3a82596955eb25424
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 6ef92063bf94cd8a6fa9fea3a82596955eb25424
# 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=mips
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>
sparse warnings: (new ones prefixed by >>)
command-line: note: in included file:
builtin:1:9: sparse: sparse: preprocessor token __ATOMIC_ACQUIRE redefined
builtin:0:0: sparse: this was the original definition
builtin:1:9: sparse: sparse: preprocessor token __ATOMIC_SEQ_CST redefined
builtin:0:0: sparse: this was the original definition
builtin:1:9: sparse: sparse: preprocessor token __ATOMIC_ACQ_REL redefined
builtin:0:0: sparse: this was the original definition
builtin:1:9: sparse: sparse: preprocessor token __ATOMIC_RELEASE redefined
builtin:0:0: sparse: this was the original definition
drivers/net/ethernet/korina.c:408:33: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected struct dma_reg *ch @@ got struct dma_reg [noderef] __iomem *tx_dma_regs @@
drivers/net/ethernet/korina.c:408:33: sparse: expected struct dma_reg *ch
drivers/net/ethernet/korina.c:408:33: sparse: got struct dma_reg [noderef] __iomem *tx_dma_regs
drivers/net/ethernet/korina.c:415:33: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected struct dma_reg *ch @@ got struct dma_reg [noderef] __iomem *rx_dma_regs @@
drivers/net/ethernet/korina.c:415:33: sparse: expected struct dma_reg *ch
drivers/net/ethernet/korina.c:415:33: sparse: got struct dma_reg [noderef] __iomem *rx_dma_regs
>> drivers/net/ethernet/korina.c:391:20: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got unsigned int * @@
drivers/net/ethernet/korina.c:391:20: sparse: expected void const volatile [noderef] __iomem *mem
drivers/net/ethernet/korina.c:391:20: sparse: got unsigned int *
>> drivers/net/ethernet/korina.c:392:31: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *mem @@ got unsigned int * @@
drivers/net/ethernet/korina.c:392:31: sparse: expected void volatile [noderef] __iomem *mem
drivers/net/ethernet/korina.c:392:31: sparse: got unsigned int *
drivers/net/ethernet/korina.c:394:33: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got unsigned int * @@
drivers/net/ethernet/korina.c:394:33: sparse: expected void const volatile [noderef] __iomem *mem
drivers/net/ethernet/korina.c:394:33: sparse: got unsigned int *
drivers/net/ethernet/korina.c:397:28: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *mem @@ got unsigned int * @@
drivers/net/ethernet/korina.c:397:28: sparse: expected void volatile [noderef] __iomem *mem
drivers/net/ethernet/korina.c:397:28: sparse: got unsigned int *
drivers/net/ethernet/korina.c:400:20: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *mem @@ got unsigned int * @@
drivers/net/ethernet/korina.c:400:20: sparse: expected void volatile [noderef] __iomem *mem
drivers/net/ethernet/korina.c:400:20: sparse: got unsigned int *
drivers/net/ethernet/korina.c:401:20: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *mem @@ got unsigned int * @@
drivers/net/ethernet/korina.c:401:20: sparse: expected void volatile [noderef] __iomem *mem
drivers/net/ethernet/korina.c:401:20: sparse: got unsigned int *
>> drivers/net/ethernet/korina.c:391:20: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got unsigned int * @@
drivers/net/ethernet/korina.c:391:20: sparse: expected void const volatile [noderef] __iomem *mem
drivers/net/ethernet/korina.c:391:20: sparse: got unsigned int *
>> drivers/net/ethernet/korina.c:392:31: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *mem @@ got unsigned int * @@
drivers/net/ethernet/korina.c:392:31: sparse: expected void volatile [noderef] __iomem *mem
drivers/net/ethernet/korina.c:392:31: sparse: got unsigned int *
drivers/net/ethernet/korina.c:394:33: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *mem @@ got unsigned int * @@
drivers/net/ethernet/korina.c:394:33: sparse: expected void const volatile [noderef] __iomem *mem
drivers/net/ethernet/korina.c:394:33: sparse: got unsigned int *
drivers/net/ethernet/korina.c:397:28: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *mem @@ got unsigned int * @@
drivers/net/ethernet/korina.c:397:28: sparse: expected void volatile [noderef] __iomem *mem
drivers/net/ethernet/korina.c:397:28: sparse: got unsigned int *
drivers/net/ethernet/korina.c:400:20: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *mem @@ got unsigned int * @@
drivers/net/ethernet/korina.c:400:20: sparse: expected void volatile [noderef] __iomem *mem
drivers/net/ethernet/korina.c:400:20: sparse: got unsigned int *
drivers/net/ethernet/korina.c:401:20: sparse: sparse: incorrect type in argument 2 (different address spaces) @@ expected void volatile [noderef] __iomem *mem @@ got unsigned int * @@
drivers/net/ethernet/korina.c:401:20: sparse: expected void volatile [noderef] __iomem *mem
drivers/net/ethernet/korina.c:401:20: sparse: got unsigned int *
vim +391 drivers/net/ethernet/korina.c
0fc96939a97ffd4 drivers/net/ethernet/korina.c Thomas Bogendoerfer 2021-04-19 387
ef11291bcd5f963 drivers/net/korina.c Florian Fainelli 2008-03-19 388 static inline void korina_abort_dma(struct net_device *dev,
ef11291bcd5f963 drivers/net/korina.c Florian Fainelli 2008-03-19 389 struct dma_reg *ch)
ef11291bcd5f963 drivers/net/korina.c Florian Fainelli 2008-03-19 390 {
ef11291bcd5f963 drivers/net/korina.c Florian Fainelli 2008-03-19 @391 if (readl(&ch->dmac) & DMA_CHAN_RUN_BIT) {
ef11291bcd5f963 drivers/net/korina.c Florian Fainelli 2008-03-19 @392 writel(0x10, &ch->dmac);
ef11291bcd5f963 drivers/net/korina.c Florian Fainelli 2008-03-19 393
ef11291bcd5f963 drivers/net/korina.c Florian Fainelli 2008-03-19 394 while (!(readl(&ch->dmas) & DMA_STAT_HALT))
860e9538a9482bb drivers/net/ethernet/korina.c Florian Westphal 2016-05-03 395 netif_trans_update(dev);
ef11291bcd5f963 drivers/net/korina.c Florian Fainelli 2008-03-19 396
ef11291bcd5f963 drivers/net/korina.c Florian Fainelli 2008-03-19 397 writel(0, &ch->dmas);
ef11291bcd5f963 drivers/net/korina.c Florian Fainelli 2008-03-19 398 }
ef11291bcd5f963 drivers/net/korina.c Florian Fainelli 2008-03-19 399
ef11291bcd5f963 drivers/net/korina.c Florian Fainelli 2008-03-19 400 writel(0, &ch->dmadptr);
ef11291bcd5f963 drivers/net/korina.c Florian Fainelli 2008-03-19 401 writel(0, &ch->dmandptr);
ef11291bcd5f963 drivers/net/korina.c Florian Fainelli 2008-03-19 402 }
ef11291bcd5f963 drivers/net/korina.c Florian Fainelli 2008-03-19 403
:::::: The code at line 391 was first introduced by commit
:::::: ef11291bcd5f963c72e7ba5952be3e3c97463d2c Add support the Korina (IDT RC32434) Ethernet MAC
:::::: TO: Florian Fainelli <florian.fainelli@xxxxxxxxxxxxx>
:::::: CC: Jeff Garzik <jeff@xxxxxxxxxx>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx
Attachment:
.config.gz
Description: application/gzip