lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202312050130.ryR55KTq-lkp@intel.com>
Date:   Tue, 5 Dec 2023 01:32:34 +0800
From:   kernel test robot <lkp@...el.com>
To:     Thomas Bogendoerfer <tsbogend@...ha.franken.de>
Cc:     oe-kbuild-all@...ts.linux.dev, linux-kernel@...r.kernel.org
Subject: drivers/net/ethernet/korina.c:391:13: sparse: sparse: incorrect type
 in argument 1 (different address spaces)

Hi Thomas,

First bad commit (maybe != root cause):

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   33cc938e65a98f1d29d0a18403dbbee050dcad9a
commit: 6ef92063bf94cd8a6fa9fea3a82596955eb25424 net: korina: Make driver COMPILE_TESTable
date:   2 years, 8 months ago
config: sh-randconfig-r133-20231118 (https://download.01.org/0day-ci/archive/20231205/202312050130.ryR55KTq-lkp@intel.com/config)
compiler: sh4-linux-gcc (GCC) 13.2.0
reproduce: (https://download.01.org/0day-ci/archive/20231205/202312050130.ryR55KTq-lkp@intel.com/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202312050130.ryR55KTq-lkp@intel.com/

sparse warnings: (new ones prefixed by >>)
   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:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *ptr @@     got unsigned int * @@
   drivers/net/ethernet/korina.c:391:13: sparse:     expected void const volatile [noderef] __iomem *ptr
   drivers/net/ethernet/korina.c:391:13: sparse:     got unsigned int *
   drivers/net/ethernet/korina.c:392:17: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *ptr @@     got unsigned int * @@
   drivers/net/ethernet/korina.c:392:17: sparse:     expected void const volatile [noderef] __iomem *ptr
   drivers/net/ethernet/korina.c:392:17: sparse:     got unsigned int *
   drivers/net/ethernet/korina.c:394:26: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *ptr @@     got unsigned int * @@
   drivers/net/ethernet/korina.c:394:26: sparse:     expected void const volatile [noderef] __iomem *ptr
   drivers/net/ethernet/korina.c:394:26: sparse:     got unsigned int *
   drivers/net/ethernet/korina.c:397:17: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *ptr @@     got unsigned int * @@
   drivers/net/ethernet/korina.c:397:17: sparse:     expected void const volatile [noderef] __iomem *ptr
   drivers/net/ethernet/korina.c:397:17: sparse:     got unsigned int *
   drivers/net/ethernet/korina.c:400:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *ptr @@     got unsigned int * @@
   drivers/net/ethernet/korina.c:400:9: sparse:     expected void const volatile [noderef] __iomem *ptr
   drivers/net/ethernet/korina.c:400:9: sparse:     got unsigned int *
   drivers/net/ethernet/korina.c:401:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *ptr @@     got unsigned int * @@
   drivers/net/ethernet/korina.c:401:9: sparse:     expected void const volatile [noderef] __iomem *ptr
   drivers/net/ethernet/korina.c:401:9: sparse:     got unsigned int *
>> drivers/net/ethernet/korina.c:391:13: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *ptr @@     got unsigned int * @@
   drivers/net/ethernet/korina.c:391:13: sparse:     expected void const volatile [noderef] __iomem *ptr
   drivers/net/ethernet/korina.c:391:13: sparse:     got unsigned int *
   drivers/net/ethernet/korina.c:392:17: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *ptr @@     got unsigned int * @@
   drivers/net/ethernet/korina.c:392:17: sparse:     expected void const volatile [noderef] __iomem *ptr
   drivers/net/ethernet/korina.c:392:17: sparse:     got unsigned int *
   drivers/net/ethernet/korina.c:394:26: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *ptr @@     got unsigned int * @@
   drivers/net/ethernet/korina.c:394:26: sparse:     expected void const volatile [noderef] __iomem *ptr
   drivers/net/ethernet/korina.c:394:26: sparse:     got unsigned int *
   drivers/net/ethernet/korina.c:397:17: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *ptr @@     got unsigned int * @@
   drivers/net/ethernet/korina.c:397:17: sparse:     expected void const volatile [noderef] __iomem *ptr
   drivers/net/ethernet/korina.c:397:17: sparse:     got unsigned int *
   drivers/net/ethernet/korina.c:400:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *ptr @@     got unsigned int * @@
   drivers/net/ethernet/korina.c:400:9: sparse:     expected void const volatile [noderef] __iomem *ptr
   drivers/net/ethernet/korina.c:400:9: sparse:     got unsigned int *
   drivers/net/ethernet/korina.c:401:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile [noderef] __iomem *ptr @@     got unsigned int * @@
   drivers/net/ethernet/korina.c:401:9: sparse:     expected void const volatile [noderef] __iomem *ptr
   drivers/net/ethernet/korina.c:401:9: sparse:     got unsigned int *

vim +391 drivers/net/ethernet/korina.c

0fc96939a97ffd drivers/net/ethernet/korina.c Thomas Bogendoerfer 2021-04-19  387  
ef11291bcd5f96 drivers/net/korina.c          Florian Fainelli    2008-03-19  388  static inline void korina_abort_dma(struct net_device *dev,
ef11291bcd5f96 drivers/net/korina.c          Florian Fainelli    2008-03-19  389  					struct dma_reg *ch)
ef11291bcd5f96 drivers/net/korina.c          Florian Fainelli    2008-03-19  390  {
ef11291bcd5f96 drivers/net/korina.c          Florian Fainelli    2008-03-19 @391  	if (readl(&ch->dmac) & DMA_CHAN_RUN_BIT) {
ef11291bcd5f96 drivers/net/korina.c          Florian Fainelli    2008-03-19  392  		writel(0x10, &ch->dmac);
ef11291bcd5f96 drivers/net/korina.c          Florian Fainelli    2008-03-19  393  
ef11291bcd5f96 drivers/net/korina.c          Florian Fainelli    2008-03-19  394  		while (!(readl(&ch->dmas) & DMA_STAT_HALT))
860e9538a9482b drivers/net/ethernet/korina.c Florian Westphal    2016-05-03  395  			netif_trans_update(dev);
ef11291bcd5f96 drivers/net/korina.c          Florian Fainelli    2008-03-19  396  
ef11291bcd5f96 drivers/net/korina.c          Florian Fainelli    2008-03-19  397  		writel(0, &ch->dmas);
ef11291bcd5f96 drivers/net/korina.c          Florian Fainelli    2008-03-19  398  	}
ef11291bcd5f96 drivers/net/korina.c          Florian Fainelli    2008-03-19  399  
ef11291bcd5f96 drivers/net/korina.c          Florian Fainelli    2008-03-19  400  	writel(0, &ch->dmadptr);
ef11291bcd5f96 drivers/net/korina.c          Florian Fainelli    2008-03-19  401  	writel(0, &ch->dmandptr);
ef11291bcd5f96 drivers/net/korina.c          Florian Fainelli    2008-03-19  402  }
ef11291bcd5f96 drivers/net/korina.c          Florian Fainelli    2008-03-19  403  
ef11291bcd5f96 drivers/net/korina.c          Florian Fainelli    2008-03-19  404  static void korina_abort_tx(struct net_device *dev)
ef11291bcd5f96 drivers/net/korina.c          Florian Fainelli    2008-03-19  405  {
ef11291bcd5f96 drivers/net/korina.c          Florian Fainelli    2008-03-19  406  	struct korina_private *lp = netdev_priv(dev);
ef11291bcd5f96 drivers/net/korina.c          Florian Fainelli    2008-03-19  407  
ef11291bcd5f96 drivers/net/korina.c          Florian Fainelli    2008-03-19 @408  	korina_abort_dma(dev, lp->tx_dma_regs);
ef11291bcd5f96 drivers/net/korina.c          Florian Fainelli    2008-03-19  409  }
ef11291bcd5f96 drivers/net/korina.c          Florian Fainelli    2008-03-19  410  

:::::: The code at line 391 was first introduced by commit
:::::: ef11291bcd5f963c72e7ba5952be3e3c97463d2c Add support the Korina (IDT RC32434) Ethernet MAC

:::::: TO: Florian Fainelli <florian.fainelli@...ecomint.eu>
:::::: CC: Jeff Garzik <jeff@...zik.org>

-- 
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ