* drivers/spi/spi-pci1xxxx.c:373:9: sparse: sparse: incorrect type in argument 1 (different address spaces)
@ 2024-07-28 17:00 kernel test robot
0 siblings, 0 replies; 4+ messages in thread
From: kernel test robot @ 2024-07-28 17:00 UTC (permalink / raw)
To: Thangaraj Samynathan; +Cc: oe-kbuild-all, linux-kernel, Mark Brown
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 5437f30d3458ad36e83ab96088d490ebfee844d8
commit: 9538edeb72c989a4b90964ae4bba107eaf21a791 spi: mchp-pci1xxxx: DMA support for copying data to and from SPI Buf
date: 6 months ago
config: sh-randconfig-r133-20240727 (https://download.01.org/0day-ci/archive/20240729/202407290017.blX9ckyE-lkp@intel.com/config)
compiler: sh4-linux-gcc (GCC) 14.1.0
reproduce: (https://download.01.org/0day-ci/archive/20240729/202407290017.blX9ckyE-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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202407290017.blX9ckyE-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
drivers/spi/spi-pci1xxxx.c:369:22: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected void *base @@ got void [noderef] __iomem * @@
drivers/spi/spi-pci1xxxx.c:369:22: sparse: expected void *base
drivers/spi/spi-pci1xxxx.c:369:22: sparse: got void [noderef] __iomem *
drivers/spi/spi-pci1xxxx.c:371:22: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected void *base @@ got void [noderef] __iomem * @@
drivers/spi/spi-pci1xxxx.c:371:22: sparse: expected void *base
drivers/spi/spi-pci1xxxx.c:371:22: sparse: got void [noderef] __iomem *
>> drivers/spi/spi-pci1xxxx.c:373:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *ptr @@ got void * @@
drivers/spi/spi-pci1xxxx.c:373:9: sparse: expected void const volatile [noderef] __iomem *ptr
drivers/spi/spi-pci1xxxx.c:373:9: sparse: got void *
drivers/spi/spi-pci1xxxx.c:374:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *ptr @@ got void * @@
drivers/spi/spi-pci1xxxx.c:374:9: sparse: expected void const volatile [noderef] __iomem *ptr
drivers/spi/spi-pci1xxxx.c:374:9: sparse: got void *
drivers/spi/spi-pci1xxxx.c:375:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *ptr @@ got void * @@
drivers/spi/spi-pci1xxxx.c:375:9: sparse: expected void const volatile [noderef] __iomem *ptr
drivers/spi/spi-pci1xxxx.c:375:9: sparse: got void *
drivers/spi/spi-pci1xxxx.c:376:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *ptr @@ got void * @@
drivers/spi/spi-pci1xxxx.c:376:9: sparse: expected void const volatile [noderef] __iomem *ptr
drivers/spi/spi-pci1xxxx.c:376:9: sparse: got void *
drivers/spi/spi-pci1xxxx.c:377:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *ptr @@ got void * @@
drivers/spi/spi-pci1xxxx.c:377:9: sparse: expected void const volatile [noderef] __iomem *ptr
drivers/spi/spi-pci1xxxx.c:377:9: sparse: got void *
drivers/spi/spi-pci1xxxx.c:379:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *ptr @@ got void * @@
drivers/spi/spi-pci1xxxx.c:379:9: sparse: expected void const volatile [noderef] __iomem *ptr
drivers/spi/spi-pci1xxxx.c:379:9: sparse: got void *
vim +373 drivers/spi/spi-pci1xxxx.c
362
363 static void pci1xxxx_spi_setup_dma_from_io(struct pci1xxxx_spi_internal *p,
364 dma_addr_t dma_addr, u32 len)
365 {
366 void *base;
367
368 if (!p->hw_inst)
> 369 base = p->parent->dma_offset_bar + SPI_DMA_CH0_WR_BASE;
370 else
371 base = p->parent->dma_offset_bar + SPI_DMA_CH1_WR_BASE;
372
> 373 writel(DMA_INTR_EN, base + SPI_DMA_CH_CTL1_OFFSET);
374 writel(len, base + SPI_DMA_CH_XFER_LEN_OFFSET);
375 writel(lower_32_bits(dma_addr), base + SPI_DMA_CH_DAR_LO_OFFSET);
376 writel(upper_32_bits(dma_addr), base + SPI_DMA_CH_DAR_HI_OFFSET);
377 writel(lower_32_bits(SPI_PERI_ADDR_BASE + SPI_MST_RSP_BUF_OFFSET(p->hw_inst)),
378 base + SPI_DMA_CH_SAR_LO_OFFSET);
379 writel(upper_32_bits(SPI_PERI_ADDR_BASE + SPI_MST_RSP_BUF_OFFSET(p->hw_inst)),
380 base + SPI_DMA_CH_SAR_HI_OFFSET);
381 }
382
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 4+ messages in thread
* drivers/spi/spi-pci1xxxx.c:373:9: sparse: sparse: incorrect type in argument 1 (different address spaces)
@ 2024-11-23 6:48 kernel test robot
0 siblings, 0 replies; 4+ messages in thread
From: kernel test robot @ 2024-11-23 6:48 UTC (permalink / raw)
To: Thangaraj Samynathan; +Cc: oe-kbuild-all, linux-kernel, Mark Brown
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 2a163a4cea153348172e260a0c5b5569103a66a3
commit: 9538edeb72c989a4b90964ae4bba107eaf21a791 spi: mchp-pci1xxxx: DMA support for copying data to and from SPI Buf
date: 10 months ago
config: sh-randconfig-r131-20241122 (https://download.01.org/0day-ci/archive/20241123/202411231439.49BinLEA-lkp@intel.com/config)
compiler: sh4-linux-gcc (GCC) 14.2.0
reproduce: (https://download.01.org/0day-ci/archive/20241123/202411231439.49BinLEA-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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202411231439.49BinLEA-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
drivers/spi/spi-pci1xxxx.c:369:22: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected void *base @@ got void [noderef] __iomem * @@
drivers/spi/spi-pci1xxxx.c:369:22: sparse: expected void *base
drivers/spi/spi-pci1xxxx.c:369:22: sparse: got void [noderef] __iomem *
drivers/spi/spi-pci1xxxx.c:371:22: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected void *base @@ got void [noderef] __iomem * @@
drivers/spi/spi-pci1xxxx.c:371:22: sparse: expected void *base
drivers/spi/spi-pci1xxxx.c:371:22: sparse: got void [noderef] __iomem *
>> drivers/spi/spi-pci1xxxx.c:373:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *ptr @@ got void * @@
drivers/spi/spi-pci1xxxx.c:373:9: sparse: expected void const volatile [noderef] __iomem *ptr
drivers/spi/spi-pci1xxxx.c:373:9: sparse: got void *
drivers/spi/spi-pci1xxxx.c:374:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *ptr @@ got void * @@
drivers/spi/spi-pci1xxxx.c:374:9: sparse: expected void const volatile [noderef] __iomem *ptr
drivers/spi/spi-pci1xxxx.c:374:9: sparse: got void *
drivers/spi/spi-pci1xxxx.c:375:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *ptr @@ got void * @@
drivers/spi/spi-pci1xxxx.c:375:9: sparse: expected void const volatile [noderef] __iomem *ptr
drivers/spi/spi-pci1xxxx.c:375:9: sparse: got void *
drivers/spi/spi-pci1xxxx.c:376:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *ptr @@ got void * @@
drivers/spi/spi-pci1xxxx.c:376:9: sparse: expected void const volatile [noderef] __iomem *ptr
drivers/spi/spi-pci1xxxx.c:376:9: sparse: got void *
drivers/spi/spi-pci1xxxx.c:377:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *ptr @@ got void * @@
drivers/spi/spi-pci1xxxx.c:377:9: sparse: expected void const volatile [noderef] __iomem *ptr
drivers/spi/spi-pci1xxxx.c:377:9: sparse: got void *
drivers/spi/spi-pci1xxxx.c:379:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *ptr @@ got void * @@
drivers/spi/spi-pci1xxxx.c:379:9: sparse: expected void const volatile [noderef] __iomem *ptr
drivers/spi/spi-pci1xxxx.c:379:9: sparse: got void *
vim +373 drivers/spi/spi-pci1xxxx.c
362
363 static void pci1xxxx_spi_setup_dma_from_io(struct pci1xxxx_spi_internal *p,
364 dma_addr_t dma_addr, u32 len)
365 {
366 void *base;
367
368 if (!p->hw_inst)
> 369 base = p->parent->dma_offset_bar + SPI_DMA_CH0_WR_BASE;
370 else
371 base = p->parent->dma_offset_bar + SPI_DMA_CH1_WR_BASE;
372
> 373 writel(DMA_INTR_EN, base + SPI_DMA_CH_CTL1_OFFSET);
374 writel(len, base + SPI_DMA_CH_XFER_LEN_OFFSET);
375 writel(lower_32_bits(dma_addr), base + SPI_DMA_CH_DAR_LO_OFFSET);
376 writel(upper_32_bits(dma_addr), base + SPI_DMA_CH_DAR_HI_OFFSET);
377 writel(lower_32_bits(SPI_PERI_ADDR_BASE + SPI_MST_RSP_BUF_OFFSET(p->hw_inst)),
378 base + SPI_DMA_CH_SAR_LO_OFFSET);
379 writel(upper_32_bits(SPI_PERI_ADDR_BASE + SPI_MST_RSP_BUF_OFFSET(p->hw_inst)),
380 base + SPI_DMA_CH_SAR_HI_OFFSET);
381 }
382
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 4+ messages in thread
* drivers/spi/spi-pci1xxxx.c:373:9: sparse: sparse: incorrect type in argument 1 (different address spaces)
@ 2024-11-27 21:52 kernel test robot
0 siblings, 0 replies; 4+ messages in thread
From: kernel test robot @ 2024-11-27 21:52 UTC (permalink / raw)
To: Thangaraj Samynathan; +Cc: oe-kbuild-all, linux-kernel, Mark Brown
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 91dbbe6c9ffe5eded9a3e75d773ff92da8d2bc57
commit: 9538edeb72c989a4b90964ae4bba107eaf21a791 spi: mchp-pci1xxxx: DMA support for copying data to and from SPI Buf
date: 10 months ago
config: sh-randconfig-r131-20241122 (https://download.01.org/0day-ci/archive/20241128/202411280502.mjhGM5yh-lkp@intel.com/config)
compiler: sh4-linux-gcc (GCC) 14.2.0
reproduce: (https://download.01.org/0day-ci/archive/20241128/202411280502.mjhGM5yh-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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202411280502.mjhGM5yh-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
drivers/spi/spi-pci1xxxx.c:369:22: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected void *base @@ got void [noderef] __iomem * @@
drivers/spi/spi-pci1xxxx.c:369:22: sparse: expected void *base
drivers/spi/spi-pci1xxxx.c:369:22: sparse: got void [noderef] __iomem *
drivers/spi/spi-pci1xxxx.c:371:22: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected void *base @@ got void [noderef] __iomem * @@
drivers/spi/spi-pci1xxxx.c:371:22: sparse: expected void *base
drivers/spi/spi-pci1xxxx.c:371:22: sparse: got void [noderef] __iomem *
>> drivers/spi/spi-pci1xxxx.c:373:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *ptr @@ got void * @@
drivers/spi/spi-pci1xxxx.c:373:9: sparse: expected void const volatile [noderef] __iomem *ptr
drivers/spi/spi-pci1xxxx.c:373:9: sparse: got void *
drivers/spi/spi-pci1xxxx.c:374:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *ptr @@ got void * @@
drivers/spi/spi-pci1xxxx.c:374:9: sparse: expected void const volatile [noderef] __iomem *ptr
drivers/spi/spi-pci1xxxx.c:374:9: sparse: got void *
drivers/spi/spi-pci1xxxx.c:375:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *ptr @@ got void * @@
drivers/spi/spi-pci1xxxx.c:375:9: sparse: expected void const volatile [noderef] __iomem *ptr
drivers/spi/spi-pci1xxxx.c:375:9: sparse: got void *
drivers/spi/spi-pci1xxxx.c:376:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *ptr @@ got void * @@
drivers/spi/spi-pci1xxxx.c:376:9: sparse: expected void const volatile [noderef] __iomem *ptr
drivers/spi/spi-pci1xxxx.c:376:9: sparse: got void *
drivers/spi/spi-pci1xxxx.c:377:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *ptr @@ got void * @@
drivers/spi/spi-pci1xxxx.c:377:9: sparse: expected void const volatile [noderef] __iomem *ptr
drivers/spi/spi-pci1xxxx.c:377:9: sparse: got void *
drivers/spi/spi-pci1xxxx.c:379:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *ptr @@ got void * @@
drivers/spi/spi-pci1xxxx.c:379:9: sparse: expected void const volatile [noderef] __iomem *ptr
drivers/spi/spi-pci1xxxx.c:379:9: sparse: got void *
vim +373 drivers/spi/spi-pci1xxxx.c
362
363 static void pci1xxxx_spi_setup_dma_from_io(struct pci1xxxx_spi_internal *p,
364 dma_addr_t dma_addr, u32 len)
365 {
366 void *base;
367
368 if (!p->hw_inst)
369 base = p->parent->dma_offset_bar + SPI_DMA_CH0_WR_BASE;
370 else
371 base = p->parent->dma_offset_bar + SPI_DMA_CH1_WR_BASE;
372
> 373 writel(DMA_INTR_EN, base + SPI_DMA_CH_CTL1_OFFSET);
374 writel(len, base + SPI_DMA_CH_XFER_LEN_OFFSET);
375 writel(lower_32_bits(dma_addr), base + SPI_DMA_CH_DAR_LO_OFFSET);
376 writel(upper_32_bits(dma_addr), base + SPI_DMA_CH_DAR_HI_OFFSET);
377 writel(lower_32_bits(SPI_PERI_ADDR_BASE + SPI_MST_RSP_BUF_OFFSET(p->hw_inst)),
378 base + SPI_DMA_CH_SAR_LO_OFFSET);
379 writel(upper_32_bits(SPI_PERI_ADDR_BASE + SPI_MST_RSP_BUF_OFFSET(p->hw_inst)),
380 base + SPI_DMA_CH_SAR_HI_OFFSET);
381 }
382
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 4+ messages in thread
* drivers/spi/spi-pci1xxxx.c:373:9: sparse: sparse: incorrect type in argument 1 (different address spaces)
@ 2024-12-22 14:15 kernel test robot
0 siblings, 0 replies; 4+ messages in thread
From: kernel test robot @ 2024-12-22 14:15 UTC (permalink / raw)
To: Thangaraj Samynathan; +Cc: oe-kbuild-all, linux-kernel, Mark Brown
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 48f506ad0b683d3e7e794efa60c5785c4fdc86fa
commit: 9538edeb72c989a4b90964ae4bba107eaf21a791 spi: mchp-pci1xxxx: DMA support for copying data to and from SPI Buf
date: 11 months ago
config: sh-randconfig-r133-20241222 (https://download.01.org/0day-ci/archive/20241222/202412222214.8owfMbIo-lkp@intel.com/config)
compiler: sh4-linux-gcc (GCC) 14.2.0
reproduce: (https://download.01.org/0day-ci/archive/20241222/202412222214.8owfMbIo-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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202412222214.8owfMbIo-lkp@intel.com/
sparse warnings: (new ones prefixed by >>)
drivers/spi/spi-pci1xxxx.c:369:22: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected void *base @@ got void [noderef] __iomem * @@
drivers/spi/spi-pci1xxxx.c:369:22: sparse: expected void *base
drivers/spi/spi-pci1xxxx.c:369:22: sparse: got void [noderef] __iomem *
drivers/spi/spi-pci1xxxx.c:371:22: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected void *base @@ got void [noderef] __iomem * @@
drivers/spi/spi-pci1xxxx.c:371:22: sparse: expected void *base
drivers/spi/spi-pci1xxxx.c:371:22: sparse: got void [noderef] __iomem *
>> drivers/spi/spi-pci1xxxx.c:373:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *ptr @@ got void * @@
drivers/spi/spi-pci1xxxx.c:373:9: sparse: expected void const volatile [noderef] __iomem *ptr
drivers/spi/spi-pci1xxxx.c:373:9: sparse: got void *
drivers/spi/spi-pci1xxxx.c:374:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *ptr @@ got void * @@
drivers/spi/spi-pci1xxxx.c:374:9: sparse: expected void const volatile [noderef] __iomem *ptr
drivers/spi/spi-pci1xxxx.c:374:9: sparse: got void *
drivers/spi/spi-pci1xxxx.c:375:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *ptr @@ got void * @@
drivers/spi/spi-pci1xxxx.c:375:9: sparse: expected void const volatile [noderef] __iomem *ptr
drivers/spi/spi-pci1xxxx.c:375:9: sparse: got void *
drivers/spi/spi-pci1xxxx.c:376:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *ptr @@ got void * @@
drivers/spi/spi-pci1xxxx.c:376:9: sparse: expected void const volatile [noderef] __iomem *ptr
drivers/spi/spi-pci1xxxx.c:376:9: sparse: got void *
drivers/spi/spi-pci1xxxx.c:377:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *ptr @@ got void * @@
drivers/spi/spi-pci1xxxx.c:377:9: sparse: expected void const volatile [noderef] __iomem *ptr
drivers/spi/spi-pci1xxxx.c:377:9: sparse: got void *
drivers/spi/spi-pci1xxxx.c:379:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@ expected void const volatile [noderef] __iomem *ptr @@ got void * @@
drivers/spi/spi-pci1xxxx.c:379:9: sparse: expected void const volatile [noderef] __iomem *ptr
drivers/spi/spi-pci1xxxx.c:379:9: sparse: got void *
vim +373 drivers/spi/spi-pci1xxxx.c
362
363 static void pci1xxxx_spi_setup_dma_from_io(struct pci1xxxx_spi_internal *p,
364 dma_addr_t dma_addr, u32 len)
365 {
366 void *base;
367
368 if (!p->hw_inst)
369 base = p->parent->dma_offset_bar + SPI_DMA_CH0_WR_BASE;
370 else
371 base = p->parent->dma_offset_bar + SPI_DMA_CH1_WR_BASE;
372
> 373 writel(DMA_INTR_EN, base + SPI_DMA_CH_CTL1_OFFSET);
374 writel(len, base + SPI_DMA_CH_XFER_LEN_OFFSET);
375 writel(lower_32_bits(dma_addr), base + SPI_DMA_CH_DAR_LO_OFFSET);
376 writel(upper_32_bits(dma_addr), base + SPI_DMA_CH_DAR_HI_OFFSET);
377 writel(lower_32_bits(SPI_PERI_ADDR_BASE + SPI_MST_RSP_BUF_OFFSET(p->hw_inst)),
378 base + SPI_DMA_CH_SAR_LO_OFFSET);
379 writel(upper_32_bits(SPI_PERI_ADDR_BASE + SPI_MST_RSP_BUF_OFFSET(p->hw_inst)),
380 base + SPI_DMA_CH_SAR_HI_OFFSET);
381 }
382
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-12-22 14:16 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-22 14:15 drivers/spi/spi-pci1xxxx.c:373:9: sparse: sparse: incorrect type in argument 1 (different address spaces) kernel test robot
-- strict thread matches above, loose matches on Subject: below --
2024-11-27 21:52 kernel test robot
2024-11-23 6:48 kernel test robot
2024-07-28 17:00 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