linux-spi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [spi:for-5.15 28/29] drivers/spi/spi-rockchip-sfc.c:456:32: sparse: sparse: incorrect type in argument 1 (different address spaces)
@ 2021-08-18 20:17 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-08-18 20:17 UTC (permalink / raw)
  To: Chris Morgan; +Cc: kbuild-all, linux-spi, Mark Brown, Jon Lin

[-- Attachment #1: Type: text/plain, Size: 2936 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-5.15
head:   02cea7039ad52593ee05824c19233366914df9b2
commit: 0b89fc0a367edab09065af722894d186bd0ccb0d [28/29] spi: rockchip-sfc: add rockchip serial flash controller
config: riscv-allyesconfig (attached as .config)
compiler: riscv64-linux-gcc (GCC) 11.2.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-348-gf0e6938b-dirty
        # https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git/commit/?id=0b89fc0a367edab09065af722894d186bd0ccb0d
        git remote add spi https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git
        git fetch --no-tags spi for-5.15
        git checkout 0b89fc0a367edab09065af722894d186bd0ccb0d
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=riscv 

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


sparse warnings: (new ones prefixed by >>)
>> drivers/spi/spi-rockchip-sfc.c:456:32: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void volatile [noderef] __iomem *addr @@     got void *buffer @@
   drivers/spi/spi-rockchip-sfc.c:456:32: sparse:     expected void volatile [noderef] __iomem *addr
   drivers/spi/spi-rockchip-sfc.c:456:32: sparse:     got void *buffer
>> drivers/spi/spi-rockchip-sfc.c:465:51: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void const volatile [noderef] __iomem *addr @@     got void *buffer @@
   drivers/spi/spi-rockchip-sfc.c:465:51: sparse:     expected void const volatile [noderef] __iomem *addr
   drivers/spi/spi-rockchip-sfc.c:465:51: sparse:     got void *buffer

vim +456 drivers/spi/spi-rockchip-sfc.c

   447	
   448	static int rockchip_sfc_xfer_data_dma(struct rockchip_sfc *sfc,
   449					      const struct spi_mem_op *op, u32 len)
   450	{
   451		int ret;
   452	
   453		dev_dbg(sfc->dev, "sfc xfer_dma len=%x\n", len);
   454	
   455		if (op->data.dir == SPI_MEM_DATA_OUT)
 > 456			memcpy_toio(sfc->buffer, op->data.buf.out, len);
   457	
   458		ret = rockchip_sfc_fifo_transfer_dma(sfc, sfc->dma_buffer, len);
   459		if (!wait_for_completion_timeout(&sfc->cp, msecs_to_jiffies(2000))) {
   460			dev_err(sfc->dev, "DMA wait for transfer finish timeout\n");
   461			ret = -ETIMEDOUT;
   462		}
   463		rockchip_sfc_irq_mask(sfc, SFC_IMR_DMA);
   464		if (op->data.dir == SPI_MEM_DATA_IN)
 > 465			memcpy_fromio(op->data.buf.in, sfc->buffer, len);
   466	
   467		return ret;
   468	}
   469	

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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 70211 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [spi:for-5.15 28/29] drivers/spi/spi-rockchip-sfc.c:456:32: sparse: sparse: incorrect type in argument 1 (different address spaces)
@ 2021-08-19  6:24 kernel test robot
  0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2021-08-19  6:24 UTC (permalink / raw)
  To: Chris Morgan; +Cc: kbuild-all, linux-spi, Mark Brown, Jon Lin

[-- Attachment #1: Type: text/plain, Size: 2930 bytes --]

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-5.15
head:   02cea7039ad52593ee05824c19233366914df9b2
commit: 0b89fc0a367edab09065af722894d186bd0ccb0d [28/29] spi: rockchip-sfc: add rockchip serial flash controller
config: powerpc-allyesconfig (attached as .config)
compiler: powerpc64-linux-gcc (GCC) 11.2.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-348-gf0e6938b-dirty
        # https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git/commit/?id=0b89fc0a367edab09065af722894d186bd0ccb0d
        git remote add spi https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git
        git fetch --no-tags spi for-5.15
        git checkout 0b89fc0a367edab09065af722894d186bd0ccb0d
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' ARCH=powerpc 

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


sparse warnings: (new ones prefixed by >>)
>> drivers/spi/spi-rockchip-sfc.c:456:32: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void volatile [noderef] __iomem *d @@     got void *buffer @@
   drivers/spi/spi-rockchip-sfc.c:456:32: sparse:     expected void volatile [noderef] __iomem *d
   drivers/spi/spi-rockchip-sfc.c:456:32: sparse:     got void *buffer
>> drivers/spi/spi-rockchip-sfc.c:465:51: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void const volatile [noderef] __iomem *s @@     got void *buffer @@
   drivers/spi/spi-rockchip-sfc.c:465:51: sparse:     expected void const volatile [noderef] __iomem *s
   drivers/spi/spi-rockchip-sfc.c:465:51: sparse:     got void *buffer

vim +456 drivers/spi/spi-rockchip-sfc.c

   447	
   448	static int rockchip_sfc_xfer_data_dma(struct rockchip_sfc *sfc,
   449					      const struct spi_mem_op *op, u32 len)
   450	{
   451		int ret;
   452	
   453		dev_dbg(sfc->dev, "sfc xfer_dma len=%x\n", len);
   454	
   455		if (op->data.dir == SPI_MEM_DATA_OUT)
 > 456			memcpy_toio(sfc->buffer, op->data.buf.out, len);
   457	
   458		ret = rockchip_sfc_fifo_transfer_dma(sfc, sfc->dma_buffer, len);
   459		if (!wait_for_completion_timeout(&sfc->cp, msecs_to_jiffies(2000))) {
   460			dev_err(sfc->dev, "DMA wait for transfer finish timeout\n");
   461			ret = -ETIMEDOUT;
   462		}
   463		rockchip_sfc_irq_mask(sfc, SFC_IMR_DMA);
   464		if (op->data.dir == SPI_MEM_DATA_IN)
 > 465			memcpy_fromio(op->data.buf.in, sfc->buffer, len);
   466	
   467		return ret;
   468	}
   469	

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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 73371 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-08-19  6:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-18 20:17 [spi:for-5.15 28/29] drivers/spi/spi-rockchip-sfc.c:456:32: sparse: sparse: incorrect type in argument 1 (different address spaces) kernel test robot
2021-08-19  6:24 kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).