All of lore.kernel.org
 help / color / mirror / Atom feed
* drivers/dma/sun6i-dma.c:244:45: sparse: sparse: incorrect type in argument 1 (different address spaces)
@ 2020-06-28  7:42 ` kernel test robot
  0 siblings, 0 replies; 12+ messages in thread
From: kernel test robot @ 2020-06-28  7:42 UTC (permalink / raw)
  To: Luc Van Oostenryck; +Cc: kbuild-all, linux-kernel

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   916a3b0fc1206f7e7ae8d00a21a3114b1dc67794
commit: 670d0a4b10704667765f7d18f7592993d02783aa sparse: use identifiers to define address spaces
date:   10 days ago
config: arm64-randconfig-s032-20200628 (attached as .config)
compiler: aarch64-linux-gcc (GCC) 9.3.0
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.2-dirty
        git checkout 670d0a4b10704667765f7d18f7592993d02783aa
        # save the attached .config to linux build tree
        make W=1 C=1 ARCH=arm64 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'

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/dma/sun6i-dma.c:244:45: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile *x @@     got void [noderef] __iomem *base @@
   drivers/dma/sun6i-dma.c:244:45: sparse:     expected void const volatile *x
   drivers/dma/sun6i-dma.c:244:45: sparse:     got void [noderef] __iomem *base
--
>> sound/soc/mediatek/common/mtk-afe-fe-dai.c:142:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void volatile [noderef] __iomem * @@     got unsigned char *dma_area @@
>> sound/soc/mediatek/common/mtk-afe-fe-dai.c:142:9: sparse:     expected void volatile [noderef] __iomem *
   sound/soc/mediatek/common/mtk-afe-fe-dai.c:142:9: sparse:     got unsigned char *dma_area
--
>> sound/soc/mediatek/common/mtk-btcvsd.c:1365:30: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected unsigned int [usertype] *bt_reg_pkt_r @@     got void [noderef] __iomem * @@
   sound/soc/mediatek/common/mtk-btcvsd.c:1365:30: sparse:     expected unsigned int [usertype] *bt_reg_pkt_r
>> sound/soc/mediatek/common/mtk-btcvsd.c:1365:30: sparse:     got void [noderef] __iomem *
>> sound/soc/mediatek/common/mtk-btcvsd.c:1367:30: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected unsigned int [usertype] *bt_reg_pkt_w @@     got void [noderef] __iomem * @@
   sound/soc/mediatek/common/mtk-btcvsd.c:1367:30: sparse:     expected unsigned int [usertype] *bt_reg_pkt_w
   sound/soc/mediatek/common/mtk-btcvsd.c:1367:30: sparse:     got void [noderef] __iomem *
>> sound/soc/mediatek/common/mtk-btcvsd.c:1369:28: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected unsigned int [usertype] *bt_reg_ctl @@     got void [noderef] __iomem * @@
   sound/soc/mediatek/common/mtk-btcvsd.c:1369:28: sparse:     expected unsigned int [usertype] *bt_reg_ctl
   sound/soc/mediatek/common/mtk-btcvsd.c:1369:28: sparse:     got void [noderef] __iomem *
--
>> drivers/mmc/host/meson-gx-mmc.c:1175:34: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected void *bounce_buf @@     got void [noderef] __iomem * @@
   drivers/mmc/host/meson-gx-mmc.c:1175:34: sparse:     expected void *bounce_buf
>> drivers/mmc/host/meson-gx-mmc.c:1175:34: sparse:     got void [noderef] __iomem *

vim +244 drivers/dma/sun6i-dma.c

555859308723d8 Maxime Ripard 2014-07-17  240  
555859308723d8 Maxime Ripard 2014-07-17  241  static inline void sun6i_dma_dump_chan_regs(struct sun6i_dma_dev *sdev,
555859308723d8 Maxime Ripard 2014-07-17  242  					    struct sun6i_pchan *pchan)
555859308723d8 Maxime Ripard 2014-07-17  243  {
42c0d54e623695 Vinod Koul    2014-07-28 @244  	phys_addr_t reg = virt_to_phys(pchan->base);
555859308723d8 Maxime Ripard 2014-07-17  245  
555859308723d8 Maxime Ripard 2014-07-17  246  	dev_dbg(sdev->slave.dev, "Chan %d reg: %pa\n"
555859308723d8 Maxime Ripard 2014-07-17  247  		"\t___en(%04x): \t0x%08x\n"
555859308723d8 Maxime Ripard 2014-07-17  248  		"\tpause(%04x): \t0x%08x\n"
555859308723d8 Maxime Ripard 2014-07-17  249  		"\tstart(%04x): \t0x%08x\n"
555859308723d8 Maxime Ripard 2014-07-17  250  		"\t__cfg(%04x): \t0x%08x\n"
555859308723d8 Maxime Ripard 2014-07-17  251  		"\t__src(%04x): \t0x%08x\n"
555859308723d8 Maxime Ripard 2014-07-17  252  		"\t__dst(%04x): \t0x%08x\n"
555859308723d8 Maxime Ripard 2014-07-17  253  		"\tcount(%04x): \t0x%08x\n"
555859308723d8 Maxime Ripard 2014-07-17  254  		"\t_para(%04x): \t0x%08x\n\n",
555859308723d8 Maxime Ripard 2014-07-17  255  		pchan->idx, &reg,
555859308723d8 Maxime Ripard 2014-07-17  256  		DMA_CHAN_ENABLE,
555859308723d8 Maxime Ripard 2014-07-17  257  		readl(pchan->base + DMA_CHAN_ENABLE),
555859308723d8 Maxime Ripard 2014-07-17  258  		DMA_CHAN_PAUSE,
555859308723d8 Maxime Ripard 2014-07-17  259  		readl(pchan->base + DMA_CHAN_PAUSE),
555859308723d8 Maxime Ripard 2014-07-17  260  		DMA_CHAN_LLI_ADDR,
555859308723d8 Maxime Ripard 2014-07-17  261  		readl(pchan->base + DMA_CHAN_LLI_ADDR),
555859308723d8 Maxime Ripard 2014-07-17  262  		DMA_CHAN_CUR_CFG,
555859308723d8 Maxime Ripard 2014-07-17  263  		readl(pchan->base + DMA_CHAN_CUR_CFG),
555859308723d8 Maxime Ripard 2014-07-17  264  		DMA_CHAN_CUR_SRC,
555859308723d8 Maxime Ripard 2014-07-17  265  		readl(pchan->base + DMA_CHAN_CUR_SRC),
555859308723d8 Maxime Ripard 2014-07-17  266  		DMA_CHAN_CUR_DST,
555859308723d8 Maxime Ripard 2014-07-17  267  		readl(pchan->base + DMA_CHAN_CUR_DST),
555859308723d8 Maxime Ripard 2014-07-17  268  		DMA_CHAN_CUR_CNT,
555859308723d8 Maxime Ripard 2014-07-17  269  		readl(pchan->base + DMA_CHAN_CUR_CNT),
555859308723d8 Maxime Ripard 2014-07-17  270  		DMA_CHAN_CUR_PARA,
555859308723d8 Maxime Ripard 2014-07-17  271  		readl(pchan->base + DMA_CHAN_CUR_PARA));
555859308723d8 Maxime Ripard 2014-07-17  272  }
555859308723d8 Maxime Ripard 2014-07-17  273  

:::::: The code at line 244 was first introduced by commit
:::::: 42c0d54e62369584f2491f072f405602ff504e0e dmaengine: sun6i: fix build failure on x86, xilinx targets

:::::: TO: Vinod Koul <vinod.koul@intel.com>
:::::: CC: Vinod Koul <vinod.koul@intel.com>

---
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: 38247 bytes --]

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

* drivers/dma/sun6i-dma.c:244:45: sparse: sparse: incorrect type in argument 1 (different address spaces)
@ 2020-06-28  7:42 ` kernel test robot
  0 siblings, 0 replies; 12+ messages in thread
From: kernel test robot @ 2020-06-28  7:42 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   916a3b0fc1206f7e7ae8d00a21a3114b1dc67794
commit: 670d0a4b10704667765f7d18f7592993d02783aa sparse: use identifiers to define address spaces
date:   10 days ago
config: arm64-randconfig-s032-20200628 (attached as .config)
compiler: aarch64-linux-gcc (GCC) 9.3.0
reproduce:
        # apt-get install sparse
        # sparse version: v0.6.2-dirty
        git checkout 670d0a4b10704667765f7d18f7592993d02783aa
        # save the attached .config to linux build tree
        make W=1 C=1 ARCH=arm64 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__'

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/dma/sun6i-dma.c:244:45: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile *x @@     got void [noderef] __iomem *base @@
   drivers/dma/sun6i-dma.c:244:45: sparse:     expected void const volatile *x
   drivers/dma/sun6i-dma.c:244:45: sparse:     got void [noderef] __iomem *base
--
>> sound/soc/mediatek/common/mtk-afe-fe-dai.c:142:9: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void volatile [noderef] __iomem * @@     got unsigned char *dma_area @@
>> sound/soc/mediatek/common/mtk-afe-fe-dai.c:142:9: sparse:     expected void volatile [noderef] __iomem *
   sound/soc/mediatek/common/mtk-afe-fe-dai.c:142:9: sparse:     got unsigned char *dma_area
--
>> sound/soc/mediatek/common/mtk-btcvsd.c:1365:30: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected unsigned int [usertype] *bt_reg_pkt_r @@     got void [noderef] __iomem * @@
   sound/soc/mediatek/common/mtk-btcvsd.c:1365:30: sparse:     expected unsigned int [usertype] *bt_reg_pkt_r
>> sound/soc/mediatek/common/mtk-btcvsd.c:1365:30: sparse:     got void [noderef] __iomem *
>> sound/soc/mediatek/common/mtk-btcvsd.c:1367:30: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected unsigned int [usertype] *bt_reg_pkt_w @@     got void [noderef] __iomem * @@
   sound/soc/mediatek/common/mtk-btcvsd.c:1367:30: sparse:     expected unsigned int [usertype] *bt_reg_pkt_w
   sound/soc/mediatek/common/mtk-btcvsd.c:1367:30: sparse:     got void [noderef] __iomem *
>> sound/soc/mediatek/common/mtk-btcvsd.c:1369:28: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected unsigned int [usertype] *bt_reg_ctl @@     got void [noderef] __iomem * @@
   sound/soc/mediatek/common/mtk-btcvsd.c:1369:28: sparse:     expected unsigned int [usertype] *bt_reg_ctl
   sound/soc/mediatek/common/mtk-btcvsd.c:1369:28: sparse:     got void [noderef] __iomem *
--
>> drivers/mmc/host/meson-gx-mmc.c:1175:34: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected void *bounce_buf @@     got void [noderef] __iomem * @@
   drivers/mmc/host/meson-gx-mmc.c:1175:34: sparse:     expected void *bounce_buf
>> drivers/mmc/host/meson-gx-mmc.c:1175:34: sparse:     got void [noderef] __iomem *

vim +244 drivers/dma/sun6i-dma.c

555859308723d8 Maxime Ripard 2014-07-17  240  
555859308723d8 Maxime Ripard 2014-07-17  241  static inline void sun6i_dma_dump_chan_regs(struct sun6i_dma_dev *sdev,
555859308723d8 Maxime Ripard 2014-07-17  242  					    struct sun6i_pchan *pchan)
555859308723d8 Maxime Ripard 2014-07-17  243  {
42c0d54e623695 Vinod Koul    2014-07-28 @244  	phys_addr_t reg = virt_to_phys(pchan->base);
555859308723d8 Maxime Ripard 2014-07-17  245  
555859308723d8 Maxime Ripard 2014-07-17  246  	dev_dbg(sdev->slave.dev, "Chan %d reg: %pa\n"
555859308723d8 Maxime Ripard 2014-07-17  247  		"\t___en(%04x): \t0x%08x\n"
555859308723d8 Maxime Ripard 2014-07-17  248  		"\tpause(%04x): \t0x%08x\n"
555859308723d8 Maxime Ripard 2014-07-17  249  		"\tstart(%04x): \t0x%08x\n"
555859308723d8 Maxime Ripard 2014-07-17  250  		"\t__cfg(%04x): \t0x%08x\n"
555859308723d8 Maxime Ripard 2014-07-17  251  		"\t__src(%04x): \t0x%08x\n"
555859308723d8 Maxime Ripard 2014-07-17  252  		"\t__dst(%04x): \t0x%08x\n"
555859308723d8 Maxime Ripard 2014-07-17  253  		"\tcount(%04x): \t0x%08x\n"
555859308723d8 Maxime Ripard 2014-07-17  254  		"\t_para(%04x): \t0x%08x\n\n",
555859308723d8 Maxime Ripard 2014-07-17  255  		pchan->idx, &reg,
555859308723d8 Maxime Ripard 2014-07-17  256  		DMA_CHAN_ENABLE,
555859308723d8 Maxime Ripard 2014-07-17  257  		readl(pchan->base + DMA_CHAN_ENABLE),
555859308723d8 Maxime Ripard 2014-07-17  258  		DMA_CHAN_PAUSE,
555859308723d8 Maxime Ripard 2014-07-17  259  		readl(pchan->base + DMA_CHAN_PAUSE),
555859308723d8 Maxime Ripard 2014-07-17  260  		DMA_CHAN_LLI_ADDR,
555859308723d8 Maxime Ripard 2014-07-17  261  		readl(pchan->base + DMA_CHAN_LLI_ADDR),
555859308723d8 Maxime Ripard 2014-07-17  262  		DMA_CHAN_CUR_CFG,
555859308723d8 Maxime Ripard 2014-07-17  263  		readl(pchan->base + DMA_CHAN_CUR_CFG),
555859308723d8 Maxime Ripard 2014-07-17  264  		DMA_CHAN_CUR_SRC,
555859308723d8 Maxime Ripard 2014-07-17  265  		readl(pchan->base + DMA_CHAN_CUR_SRC),
555859308723d8 Maxime Ripard 2014-07-17  266  		DMA_CHAN_CUR_DST,
555859308723d8 Maxime Ripard 2014-07-17  267  		readl(pchan->base + DMA_CHAN_CUR_DST),
555859308723d8 Maxime Ripard 2014-07-17  268  		DMA_CHAN_CUR_CNT,
555859308723d8 Maxime Ripard 2014-07-17  269  		readl(pchan->base + DMA_CHAN_CUR_CNT),
555859308723d8 Maxime Ripard 2014-07-17  270  		DMA_CHAN_CUR_PARA,
555859308723d8 Maxime Ripard 2014-07-17  271  		readl(pchan->base + DMA_CHAN_CUR_PARA));
555859308723d8 Maxime Ripard 2014-07-17  272  }
555859308723d8 Maxime Ripard 2014-07-17  273  

:::::: The code at line 244 was first introduced by commit
:::::: 42c0d54e62369584f2491f072f405602ff504e0e dmaengine: sun6i: fix build failure on x86, xilinx targets

:::::: TO: Vinod Koul <vinod.koul@intel.com>
:::::: CC: Vinod Koul <vinod.koul@intel.com>

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

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

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

* drivers/dma/sun6i-dma.c:244:45: sparse: sparse: incorrect type in argument 1 (different address spaces)
@ 2022-01-01 14:27 ` kernel test robot
  0 siblings, 0 replies; 12+ messages in thread
From: kernel test robot @ 2022-01-01 14:27 UTC (permalink / raw)
  To: Guenter Roeck; +Cc: kbuild-all, linux-kernel

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   8008293888188c3923f5bd8a69370dae25ed14e5
commit: 35a3f4ef0ab543daa1725b0c963eb8c05e3376f8 alpha: Declare virt_to_phys and virt_to_bus parameter as pointer to volatile
date:   4 months ago
config: alpha-randconfig-s032-20211117 (https://download.01.org/0day-ci/archive/20220101/202201012238.pq6NU8G1-lkp@intel.com/config)
compiler: alpha-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.4-dirty
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=35a3f4ef0ab543daa1725b0c963eb8c05e3376f8
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 35a3f4ef0ab543daa1725b0c963eb8c05e3376f8
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=alpha SHELL=/bin/bash drivers/dma/

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/dma/sun6i-dma.c:244:45: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void volatile *address @@     got void [noderef] __iomem *base @@
   drivers/dma/sun6i-dma.c:244:45: sparse:     expected void volatile *address
   drivers/dma/sun6i-dma.c:244:45: sparse:     got void [noderef] __iomem *base

vim +244 drivers/dma/sun6i-dma.c

555859308723d8 Maxime Ripard 2014-07-17  240  
555859308723d8 Maxime Ripard 2014-07-17  241  static inline void sun6i_dma_dump_chan_regs(struct sun6i_dma_dev *sdev,
555859308723d8 Maxime Ripard 2014-07-17  242  					    struct sun6i_pchan *pchan)
555859308723d8 Maxime Ripard 2014-07-17  243  {
42c0d54e623695 Vinod Koul    2014-07-28 @244  	phys_addr_t reg = virt_to_phys(pchan->base);
555859308723d8 Maxime Ripard 2014-07-17  245  
555859308723d8 Maxime Ripard 2014-07-17  246  	dev_dbg(sdev->slave.dev, "Chan %d reg: %pa\n"
555859308723d8 Maxime Ripard 2014-07-17  247  		"\t___en(%04x): \t0x%08x\n"
555859308723d8 Maxime Ripard 2014-07-17  248  		"\tpause(%04x): \t0x%08x\n"
555859308723d8 Maxime Ripard 2014-07-17  249  		"\tstart(%04x): \t0x%08x\n"
555859308723d8 Maxime Ripard 2014-07-17  250  		"\t__cfg(%04x): \t0x%08x\n"
555859308723d8 Maxime Ripard 2014-07-17  251  		"\t__src(%04x): \t0x%08x\n"
555859308723d8 Maxime Ripard 2014-07-17  252  		"\t__dst(%04x): \t0x%08x\n"
555859308723d8 Maxime Ripard 2014-07-17  253  		"\tcount(%04x): \t0x%08x\n"
555859308723d8 Maxime Ripard 2014-07-17  254  		"\t_para(%04x): \t0x%08x\n\n",
555859308723d8 Maxime Ripard 2014-07-17  255  		pchan->idx, &reg,
555859308723d8 Maxime Ripard 2014-07-17  256  		DMA_CHAN_ENABLE,
555859308723d8 Maxime Ripard 2014-07-17  257  		readl(pchan->base + DMA_CHAN_ENABLE),
555859308723d8 Maxime Ripard 2014-07-17  258  		DMA_CHAN_PAUSE,
555859308723d8 Maxime Ripard 2014-07-17  259  		readl(pchan->base + DMA_CHAN_PAUSE),
555859308723d8 Maxime Ripard 2014-07-17  260  		DMA_CHAN_LLI_ADDR,
555859308723d8 Maxime Ripard 2014-07-17  261  		readl(pchan->base + DMA_CHAN_LLI_ADDR),
555859308723d8 Maxime Ripard 2014-07-17  262  		DMA_CHAN_CUR_CFG,
555859308723d8 Maxime Ripard 2014-07-17  263  		readl(pchan->base + DMA_CHAN_CUR_CFG),
555859308723d8 Maxime Ripard 2014-07-17  264  		DMA_CHAN_CUR_SRC,
555859308723d8 Maxime Ripard 2014-07-17  265  		readl(pchan->base + DMA_CHAN_CUR_SRC),
555859308723d8 Maxime Ripard 2014-07-17  266  		DMA_CHAN_CUR_DST,
555859308723d8 Maxime Ripard 2014-07-17  267  		readl(pchan->base + DMA_CHAN_CUR_DST),
555859308723d8 Maxime Ripard 2014-07-17  268  		DMA_CHAN_CUR_CNT,
555859308723d8 Maxime Ripard 2014-07-17  269  		readl(pchan->base + DMA_CHAN_CUR_CNT),
555859308723d8 Maxime Ripard 2014-07-17  270  		DMA_CHAN_CUR_PARA,
555859308723d8 Maxime Ripard 2014-07-17  271  		readl(pchan->base + DMA_CHAN_CUR_PARA));
555859308723d8 Maxime Ripard 2014-07-17  272  }
555859308723d8 Maxime Ripard 2014-07-17  273  

:::::: The code at line 244 was first introduced by commit
:::::: 42c0d54e62369584f2491f072f405602ff504e0e dmaengine: sun6i: fix build failure on x86, xilinx targets

:::::: TO: Vinod Koul <vinod.koul@intel.com>
:::::: CC: Vinod Koul <vinod.koul@intel.com>

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

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

* drivers/dma/sun6i-dma.c:244:45: sparse: sparse: incorrect type in argument 1 (different address spaces)
@ 2022-01-01 14:27 ` kernel test robot
  0 siblings, 0 replies; 12+ messages in thread
From: kernel test robot @ 2022-01-01 14:27 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   8008293888188c3923f5bd8a69370dae25ed14e5
commit: 35a3f4ef0ab543daa1725b0c963eb8c05e3376f8 alpha: Declare virt_to_phys and virt_to_bus parameter as pointer to volatile
date:   4 months ago
config: alpha-randconfig-s032-20211117 (https://download.01.org/0day-ci/archive/20220101/202201012238.pq6NU8G1-lkp(a)intel.com/config)
compiler: alpha-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.4-dirty
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=35a3f4ef0ab543daa1725b0c963eb8c05e3376f8
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 35a3f4ef0ab543daa1725b0c963eb8c05e3376f8
        # save the config file to linux build tree
        mkdir build_dir
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=alpha SHELL=/bin/bash drivers/dma/

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/dma/sun6i-dma.c:244:45: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void volatile *address @@     got void [noderef] __iomem *base @@
   drivers/dma/sun6i-dma.c:244:45: sparse:     expected void volatile *address
   drivers/dma/sun6i-dma.c:244:45: sparse:     got void [noderef] __iomem *base

vim +244 drivers/dma/sun6i-dma.c

555859308723d8 Maxime Ripard 2014-07-17  240  
555859308723d8 Maxime Ripard 2014-07-17  241  static inline void sun6i_dma_dump_chan_regs(struct sun6i_dma_dev *sdev,
555859308723d8 Maxime Ripard 2014-07-17  242  					    struct sun6i_pchan *pchan)
555859308723d8 Maxime Ripard 2014-07-17  243  {
42c0d54e623695 Vinod Koul    2014-07-28 @244  	phys_addr_t reg = virt_to_phys(pchan->base);
555859308723d8 Maxime Ripard 2014-07-17  245  
555859308723d8 Maxime Ripard 2014-07-17  246  	dev_dbg(sdev->slave.dev, "Chan %d reg: %pa\n"
555859308723d8 Maxime Ripard 2014-07-17  247  		"\t___en(%04x): \t0x%08x\n"
555859308723d8 Maxime Ripard 2014-07-17  248  		"\tpause(%04x): \t0x%08x\n"
555859308723d8 Maxime Ripard 2014-07-17  249  		"\tstart(%04x): \t0x%08x\n"
555859308723d8 Maxime Ripard 2014-07-17  250  		"\t__cfg(%04x): \t0x%08x\n"
555859308723d8 Maxime Ripard 2014-07-17  251  		"\t__src(%04x): \t0x%08x\n"
555859308723d8 Maxime Ripard 2014-07-17  252  		"\t__dst(%04x): \t0x%08x\n"
555859308723d8 Maxime Ripard 2014-07-17  253  		"\tcount(%04x): \t0x%08x\n"
555859308723d8 Maxime Ripard 2014-07-17  254  		"\t_para(%04x): \t0x%08x\n\n",
555859308723d8 Maxime Ripard 2014-07-17  255  		pchan->idx, &reg,
555859308723d8 Maxime Ripard 2014-07-17  256  		DMA_CHAN_ENABLE,
555859308723d8 Maxime Ripard 2014-07-17  257  		readl(pchan->base + DMA_CHAN_ENABLE),
555859308723d8 Maxime Ripard 2014-07-17  258  		DMA_CHAN_PAUSE,
555859308723d8 Maxime Ripard 2014-07-17  259  		readl(pchan->base + DMA_CHAN_PAUSE),
555859308723d8 Maxime Ripard 2014-07-17  260  		DMA_CHAN_LLI_ADDR,
555859308723d8 Maxime Ripard 2014-07-17  261  		readl(pchan->base + DMA_CHAN_LLI_ADDR),
555859308723d8 Maxime Ripard 2014-07-17  262  		DMA_CHAN_CUR_CFG,
555859308723d8 Maxime Ripard 2014-07-17  263  		readl(pchan->base + DMA_CHAN_CUR_CFG),
555859308723d8 Maxime Ripard 2014-07-17  264  		DMA_CHAN_CUR_SRC,
555859308723d8 Maxime Ripard 2014-07-17  265  		readl(pchan->base + DMA_CHAN_CUR_SRC),
555859308723d8 Maxime Ripard 2014-07-17  266  		DMA_CHAN_CUR_DST,
555859308723d8 Maxime Ripard 2014-07-17  267  		readl(pchan->base + DMA_CHAN_CUR_DST),
555859308723d8 Maxime Ripard 2014-07-17  268  		DMA_CHAN_CUR_CNT,
555859308723d8 Maxime Ripard 2014-07-17  269  		readl(pchan->base + DMA_CHAN_CUR_CNT),
555859308723d8 Maxime Ripard 2014-07-17  270  		DMA_CHAN_CUR_PARA,
555859308723d8 Maxime Ripard 2014-07-17  271  		readl(pchan->base + DMA_CHAN_CUR_PARA));
555859308723d8 Maxime Ripard 2014-07-17  272  }
555859308723d8 Maxime Ripard 2014-07-17  273  

:::::: The code at line 244 was first introduced by commit
:::::: 42c0d54e62369584f2491f072f405602ff504e0e dmaengine: sun6i: fix build failure on x86, xilinx targets

:::::: TO: Vinod Koul <vinod.koul@intel.com>
:::::: CC: Vinod Koul <vinod.koul@intel.com>

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

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

* drivers/dma/sun6i-dma.c:244:45: sparse: sparse: incorrect type in argument 1 (different address spaces)
@ 2021-11-25 15:56 ` kernel test robot
  0 siblings, 0 replies; 12+ messages in thread
From: kernel test robot @ 2021-11-25 15:56 UTC (permalink / raw)
  To: Guenter Roeck; +Cc: kbuild-all, linux-kernel

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   5f53fa508db098c9d372423a6dac31c8a5679cdf
commit: 35a3f4ef0ab543daa1725b0c963eb8c05e3376f8 alpha: Declare virt_to_phys and virt_to_bus parameter as pointer to volatile
date:   2 months ago
config: alpha-randconfig-s032-20211117 (https://download.01.org/0day-ci/archive/20211125/202111252303.HyoCSVcA-lkp@intel.com/config)
compiler: alpha-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.4-dirty
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=35a3f4ef0ab543daa1725b0c963eb8c05e3376f8
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 35a3f4ef0ab543daa1725b0c963eb8c05e3376f8
        # save the config file 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=alpha 

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/dma/sun6i-dma.c:244:45: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void volatile *address @@     got void [noderef] __iomem *base @@
   drivers/dma/sun6i-dma.c:244:45: sparse:     expected void volatile *address
   drivers/dma/sun6i-dma.c:244:45: sparse:     got void [noderef] __iomem *base

vim +244 drivers/dma/sun6i-dma.c

555859308723d8d Maxime Ripard 2014-07-17  240  
555859308723d8d Maxime Ripard 2014-07-17  241  static inline void sun6i_dma_dump_chan_regs(struct sun6i_dma_dev *sdev,
555859308723d8d Maxime Ripard 2014-07-17  242  					    struct sun6i_pchan *pchan)
555859308723d8d Maxime Ripard 2014-07-17  243  {
42c0d54e6236958 Vinod Koul    2014-07-28 @244  	phys_addr_t reg = virt_to_phys(pchan->base);
555859308723d8d Maxime Ripard 2014-07-17  245  
555859308723d8d Maxime Ripard 2014-07-17  246  	dev_dbg(sdev->slave.dev, "Chan %d reg: %pa\n"
555859308723d8d Maxime Ripard 2014-07-17  247  		"\t___en(%04x): \t0x%08x\n"
555859308723d8d Maxime Ripard 2014-07-17  248  		"\tpause(%04x): \t0x%08x\n"
555859308723d8d Maxime Ripard 2014-07-17  249  		"\tstart(%04x): \t0x%08x\n"
555859308723d8d Maxime Ripard 2014-07-17  250  		"\t__cfg(%04x): \t0x%08x\n"
555859308723d8d Maxime Ripard 2014-07-17  251  		"\t__src(%04x): \t0x%08x\n"
555859308723d8d Maxime Ripard 2014-07-17  252  		"\t__dst(%04x): \t0x%08x\n"
555859308723d8d Maxime Ripard 2014-07-17  253  		"\tcount(%04x): \t0x%08x\n"
555859308723d8d Maxime Ripard 2014-07-17  254  		"\t_para(%04x): \t0x%08x\n\n",
555859308723d8d Maxime Ripard 2014-07-17  255  		pchan->idx, &reg,
555859308723d8d Maxime Ripard 2014-07-17  256  		DMA_CHAN_ENABLE,
555859308723d8d Maxime Ripard 2014-07-17  257  		readl(pchan->base + DMA_CHAN_ENABLE),
555859308723d8d Maxime Ripard 2014-07-17  258  		DMA_CHAN_PAUSE,
555859308723d8d Maxime Ripard 2014-07-17  259  		readl(pchan->base + DMA_CHAN_PAUSE),
555859308723d8d Maxime Ripard 2014-07-17  260  		DMA_CHAN_LLI_ADDR,
555859308723d8d Maxime Ripard 2014-07-17  261  		readl(pchan->base + DMA_CHAN_LLI_ADDR),
555859308723d8d Maxime Ripard 2014-07-17  262  		DMA_CHAN_CUR_CFG,
555859308723d8d Maxime Ripard 2014-07-17  263  		readl(pchan->base + DMA_CHAN_CUR_CFG),
555859308723d8d Maxime Ripard 2014-07-17  264  		DMA_CHAN_CUR_SRC,
555859308723d8d Maxime Ripard 2014-07-17  265  		readl(pchan->base + DMA_CHAN_CUR_SRC),
555859308723d8d Maxime Ripard 2014-07-17  266  		DMA_CHAN_CUR_DST,
555859308723d8d Maxime Ripard 2014-07-17  267  		readl(pchan->base + DMA_CHAN_CUR_DST),
555859308723d8d Maxime Ripard 2014-07-17  268  		DMA_CHAN_CUR_CNT,
555859308723d8d Maxime Ripard 2014-07-17  269  		readl(pchan->base + DMA_CHAN_CUR_CNT),
555859308723d8d Maxime Ripard 2014-07-17  270  		DMA_CHAN_CUR_PARA,
555859308723d8d Maxime Ripard 2014-07-17  271  		readl(pchan->base + DMA_CHAN_CUR_PARA));
555859308723d8d Maxime Ripard 2014-07-17  272  }
555859308723d8d Maxime Ripard 2014-07-17  273  

:::::: The code at line 244 was first introduced by commit
:::::: 42c0d54e62369584f2491f072f405602ff504e0e dmaengine: sun6i: fix build failure on x86, xilinx targets

:::::: TO: Vinod Koul <vinod.koul@intel.com>
:::::: CC: Vinod Koul <vinod.koul@intel.com>

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

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

* drivers/dma/sun6i-dma.c:244:45: sparse: sparse: incorrect type in argument 1 (different address spaces)
@ 2021-11-25 15:56 ` kernel test robot
  0 siblings, 0 replies; 12+ messages in thread
From: kernel test robot @ 2021-11-25 15:56 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   5f53fa508db098c9d372423a6dac31c8a5679cdf
commit: 35a3f4ef0ab543daa1725b0c963eb8c05e3376f8 alpha: Declare virt_to_phys and virt_to_bus parameter as pointer to volatile
date:   2 months ago
config: alpha-randconfig-s032-20211117 (https://download.01.org/0day-ci/archive/20211125/202111252303.HyoCSVcA-lkp(a)intel.com/config)
compiler: alpha-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.4-dirty
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=35a3f4ef0ab543daa1725b0c963eb8c05e3376f8
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 35a3f4ef0ab543daa1725b0c963eb8c05e3376f8
        # save the config file 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=alpha 

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/dma/sun6i-dma.c:244:45: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void volatile *address @@     got void [noderef] __iomem *base @@
   drivers/dma/sun6i-dma.c:244:45: sparse:     expected void volatile *address
   drivers/dma/sun6i-dma.c:244:45: sparse:     got void [noderef] __iomem *base

vim +244 drivers/dma/sun6i-dma.c

555859308723d8d Maxime Ripard 2014-07-17  240  
555859308723d8d Maxime Ripard 2014-07-17  241  static inline void sun6i_dma_dump_chan_regs(struct sun6i_dma_dev *sdev,
555859308723d8d Maxime Ripard 2014-07-17  242  					    struct sun6i_pchan *pchan)
555859308723d8d Maxime Ripard 2014-07-17  243  {
42c0d54e6236958 Vinod Koul    2014-07-28 @244  	phys_addr_t reg = virt_to_phys(pchan->base);
555859308723d8d Maxime Ripard 2014-07-17  245  
555859308723d8d Maxime Ripard 2014-07-17  246  	dev_dbg(sdev->slave.dev, "Chan %d reg: %pa\n"
555859308723d8d Maxime Ripard 2014-07-17  247  		"\t___en(%04x): \t0x%08x\n"
555859308723d8d Maxime Ripard 2014-07-17  248  		"\tpause(%04x): \t0x%08x\n"
555859308723d8d Maxime Ripard 2014-07-17  249  		"\tstart(%04x): \t0x%08x\n"
555859308723d8d Maxime Ripard 2014-07-17  250  		"\t__cfg(%04x): \t0x%08x\n"
555859308723d8d Maxime Ripard 2014-07-17  251  		"\t__src(%04x): \t0x%08x\n"
555859308723d8d Maxime Ripard 2014-07-17  252  		"\t__dst(%04x): \t0x%08x\n"
555859308723d8d Maxime Ripard 2014-07-17  253  		"\tcount(%04x): \t0x%08x\n"
555859308723d8d Maxime Ripard 2014-07-17  254  		"\t_para(%04x): \t0x%08x\n\n",
555859308723d8d Maxime Ripard 2014-07-17  255  		pchan->idx, &reg,
555859308723d8d Maxime Ripard 2014-07-17  256  		DMA_CHAN_ENABLE,
555859308723d8d Maxime Ripard 2014-07-17  257  		readl(pchan->base + DMA_CHAN_ENABLE),
555859308723d8d Maxime Ripard 2014-07-17  258  		DMA_CHAN_PAUSE,
555859308723d8d Maxime Ripard 2014-07-17  259  		readl(pchan->base + DMA_CHAN_PAUSE),
555859308723d8d Maxime Ripard 2014-07-17  260  		DMA_CHAN_LLI_ADDR,
555859308723d8d Maxime Ripard 2014-07-17  261  		readl(pchan->base + DMA_CHAN_LLI_ADDR),
555859308723d8d Maxime Ripard 2014-07-17  262  		DMA_CHAN_CUR_CFG,
555859308723d8d Maxime Ripard 2014-07-17  263  		readl(pchan->base + DMA_CHAN_CUR_CFG),
555859308723d8d Maxime Ripard 2014-07-17  264  		DMA_CHAN_CUR_SRC,
555859308723d8d Maxime Ripard 2014-07-17  265  		readl(pchan->base + DMA_CHAN_CUR_SRC),
555859308723d8d Maxime Ripard 2014-07-17  266  		DMA_CHAN_CUR_DST,
555859308723d8d Maxime Ripard 2014-07-17  267  		readl(pchan->base + DMA_CHAN_CUR_DST),
555859308723d8d Maxime Ripard 2014-07-17  268  		DMA_CHAN_CUR_CNT,
555859308723d8d Maxime Ripard 2014-07-17  269  		readl(pchan->base + DMA_CHAN_CUR_CNT),
555859308723d8d Maxime Ripard 2014-07-17  270  		DMA_CHAN_CUR_PARA,
555859308723d8d Maxime Ripard 2014-07-17  271  		readl(pchan->base + DMA_CHAN_CUR_PARA));
555859308723d8d Maxime Ripard 2014-07-17  272  }
555859308723d8d Maxime Ripard 2014-07-17  273  

:::::: The code at line 244 was first introduced by commit
:::::: 42c0d54e62369584f2491f072f405602ff504e0e dmaengine: sun6i: fix build failure on x86, xilinx targets

:::::: TO: Vinod Koul <vinod.koul@intel.com>
:::::: CC: Vinod Koul <vinod.koul@intel.com>

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

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

* drivers/dma/sun6i-dma.c:244:45: sparse: sparse: incorrect type in argument 1 (different address spaces)
@ 2021-11-20  0:50 ` kernel test robot
  0 siblings, 0 replies; 12+ messages in thread
From: kernel test robot @ 2021-11-20  0:50 UTC (permalink / raw)
  To: Florian Fainelli; +Cc: kbuild-all, linux-kernel, Thomas Bogendoerfer

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   a90af8f15bdc9449ee2d24e1d73fa3f7e8633f81
commit: dfad83cb7193effb6c853a5c7337ac2274a2e2fc MIPS: Add support for CONFIG_DEBUG_VIRTUAL
date:   8 months ago
config: mips-randconfig-s032-20211116 (attached as .config)
compiler: mipsel-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.4-dirty
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=dfad83cb7193effb6c853a5c7337ac2274a2e2fc
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout dfad83cb7193effb6c853a5c7337ac2274a2e2fc
        # 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=mips 

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 >>)
   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/dma/sun6i-dma.c:244:45: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile *x @@     got void [noderef] __iomem *base @@
   drivers/dma/sun6i-dma.c:244:45: sparse:     expected void const volatile *x
   drivers/dma/sun6i-dma.c:244:45: sparse:     got void [noderef] __iomem *base

vim +244 drivers/dma/sun6i-dma.c

555859308723d8 Maxime Ripard 2014-07-17  240  
555859308723d8 Maxime Ripard 2014-07-17  241  static inline void sun6i_dma_dump_chan_regs(struct sun6i_dma_dev *sdev,
555859308723d8 Maxime Ripard 2014-07-17  242  					    struct sun6i_pchan *pchan)
555859308723d8 Maxime Ripard 2014-07-17  243  {
42c0d54e623695 Vinod Koul    2014-07-28 @244  	phys_addr_t reg = virt_to_phys(pchan->base);
555859308723d8 Maxime Ripard 2014-07-17  245  
555859308723d8 Maxime Ripard 2014-07-17  246  	dev_dbg(sdev->slave.dev, "Chan %d reg: %pa\n"
555859308723d8 Maxime Ripard 2014-07-17  247  		"\t___en(%04x): \t0x%08x\n"
555859308723d8 Maxime Ripard 2014-07-17  248  		"\tpause(%04x): \t0x%08x\n"
555859308723d8 Maxime Ripard 2014-07-17  249  		"\tstart(%04x): \t0x%08x\n"
555859308723d8 Maxime Ripard 2014-07-17  250  		"\t__cfg(%04x): \t0x%08x\n"
555859308723d8 Maxime Ripard 2014-07-17  251  		"\t__src(%04x): \t0x%08x\n"
555859308723d8 Maxime Ripard 2014-07-17  252  		"\t__dst(%04x): \t0x%08x\n"
555859308723d8 Maxime Ripard 2014-07-17  253  		"\tcount(%04x): \t0x%08x\n"
555859308723d8 Maxime Ripard 2014-07-17  254  		"\t_para(%04x): \t0x%08x\n\n",
555859308723d8 Maxime Ripard 2014-07-17  255  		pchan->idx, &reg,
555859308723d8 Maxime Ripard 2014-07-17  256  		DMA_CHAN_ENABLE,
555859308723d8 Maxime Ripard 2014-07-17  257  		readl(pchan->base + DMA_CHAN_ENABLE),
555859308723d8 Maxime Ripard 2014-07-17  258  		DMA_CHAN_PAUSE,
555859308723d8 Maxime Ripard 2014-07-17  259  		readl(pchan->base + DMA_CHAN_PAUSE),
555859308723d8 Maxime Ripard 2014-07-17  260  		DMA_CHAN_LLI_ADDR,
555859308723d8 Maxime Ripard 2014-07-17  261  		readl(pchan->base + DMA_CHAN_LLI_ADDR),
555859308723d8 Maxime Ripard 2014-07-17  262  		DMA_CHAN_CUR_CFG,
555859308723d8 Maxime Ripard 2014-07-17  263  		readl(pchan->base + DMA_CHAN_CUR_CFG),
555859308723d8 Maxime Ripard 2014-07-17  264  		DMA_CHAN_CUR_SRC,
555859308723d8 Maxime Ripard 2014-07-17  265  		readl(pchan->base + DMA_CHAN_CUR_SRC),
555859308723d8 Maxime Ripard 2014-07-17  266  		DMA_CHAN_CUR_DST,
555859308723d8 Maxime Ripard 2014-07-17  267  		readl(pchan->base + DMA_CHAN_CUR_DST),
555859308723d8 Maxime Ripard 2014-07-17  268  		DMA_CHAN_CUR_CNT,
555859308723d8 Maxime Ripard 2014-07-17  269  		readl(pchan->base + DMA_CHAN_CUR_CNT),
555859308723d8 Maxime Ripard 2014-07-17  270  		DMA_CHAN_CUR_PARA,
555859308723d8 Maxime Ripard 2014-07-17  271  		readl(pchan->base + DMA_CHAN_CUR_PARA));
555859308723d8 Maxime Ripard 2014-07-17  272  }
555859308723d8 Maxime Ripard 2014-07-17  273  

:::::: The code at line 244 was first introduced by commit
:::::: 42c0d54e62369584f2491f072f405602ff504e0e dmaengine: sun6i: fix build failure on x86, xilinx targets

:::::: TO: Vinod Koul <vinod.koul@intel.com>
:::::: CC: Vinod Koul <vinod.koul@intel.com>

---
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: 37050 bytes --]

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

* drivers/dma/sun6i-dma.c:244:45: sparse: sparse: incorrect type in argument 1 (different address spaces)
@ 2021-11-20  0:50 ` kernel test robot
  0 siblings, 0 replies; 12+ messages in thread
From: kernel test robot @ 2021-11-20  0:50 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   a90af8f15bdc9449ee2d24e1d73fa3f7e8633f81
commit: dfad83cb7193effb6c853a5c7337ac2274a2e2fc MIPS: Add support for CONFIG_DEBUG_VIRTUAL
date:   8 months ago
config: mips-randconfig-s032-20211116 (attached as .config)
compiler: mipsel-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.4-dirty
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=dfad83cb7193effb6c853a5c7337ac2274a2e2fc
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout dfad83cb7193effb6c853a5c7337ac2274a2e2fc
        # 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=mips 

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 >>)
   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/dma/sun6i-dma.c:244:45: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void const volatile *x @@     got void [noderef] __iomem *base @@
   drivers/dma/sun6i-dma.c:244:45: sparse:     expected void const volatile *x
   drivers/dma/sun6i-dma.c:244:45: sparse:     got void [noderef] __iomem *base

vim +244 drivers/dma/sun6i-dma.c

555859308723d8 Maxime Ripard 2014-07-17  240  
555859308723d8 Maxime Ripard 2014-07-17  241  static inline void sun6i_dma_dump_chan_regs(struct sun6i_dma_dev *sdev,
555859308723d8 Maxime Ripard 2014-07-17  242  					    struct sun6i_pchan *pchan)
555859308723d8 Maxime Ripard 2014-07-17  243  {
42c0d54e623695 Vinod Koul    2014-07-28 @244  	phys_addr_t reg = virt_to_phys(pchan->base);
555859308723d8 Maxime Ripard 2014-07-17  245  
555859308723d8 Maxime Ripard 2014-07-17  246  	dev_dbg(sdev->slave.dev, "Chan %d reg: %pa\n"
555859308723d8 Maxime Ripard 2014-07-17  247  		"\t___en(%04x): \t0x%08x\n"
555859308723d8 Maxime Ripard 2014-07-17  248  		"\tpause(%04x): \t0x%08x\n"
555859308723d8 Maxime Ripard 2014-07-17  249  		"\tstart(%04x): \t0x%08x\n"
555859308723d8 Maxime Ripard 2014-07-17  250  		"\t__cfg(%04x): \t0x%08x\n"
555859308723d8 Maxime Ripard 2014-07-17  251  		"\t__src(%04x): \t0x%08x\n"
555859308723d8 Maxime Ripard 2014-07-17  252  		"\t__dst(%04x): \t0x%08x\n"
555859308723d8 Maxime Ripard 2014-07-17  253  		"\tcount(%04x): \t0x%08x\n"
555859308723d8 Maxime Ripard 2014-07-17  254  		"\t_para(%04x): \t0x%08x\n\n",
555859308723d8 Maxime Ripard 2014-07-17  255  		pchan->idx, &reg,
555859308723d8 Maxime Ripard 2014-07-17  256  		DMA_CHAN_ENABLE,
555859308723d8 Maxime Ripard 2014-07-17  257  		readl(pchan->base + DMA_CHAN_ENABLE),
555859308723d8 Maxime Ripard 2014-07-17  258  		DMA_CHAN_PAUSE,
555859308723d8 Maxime Ripard 2014-07-17  259  		readl(pchan->base + DMA_CHAN_PAUSE),
555859308723d8 Maxime Ripard 2014-07-17  260  		DMA_CHAN_LLI_ADDR,
555859308723d8 Maxime Ripard 2014-07-17  261  		readl(pchan->base + DMA_CHAN_LLI_ADDR),
555859308723d8 Maxime Ripard 2014-07-17  262  		DMA_CHAN_CUR_CFG,
555859308723d8 Maxime Ripard 2014-07-17  263  		readl(pchan->base + DMA_CHAN_CUR_CFG),
555859308723d8 Maxime Ripard 2014-07-17  264  		DMA_CHAN_CUR_SRC,
555859308723d8 Maxime Ripard 2014-07-17  265  		readl(pchan->base + DMA_CHAN_CUR_SRC),
555859308723d8 Maxime Ripard 2014-07-17  266  		DMA_CHAN_CUR_DST,
555859308723d8 Maxime Ripard 2014-07-17  267  		readl(pchan->base + DMA_CHAN_CUR_DST),
555859308723d8 Maxime Ripard 2014-07-17  268  		DMA_CHAN_CUR_CNT,
555859308723d8 Maxime Ripard 2014-07-17  269  		readl(pchan->base + DMA_CHAN_CUR_CNT),
555859308723d8 Maxime Ripard 2014-07-17  270  		DMA_CHAN_CUR_PARA,
555859308723d8 Maxime Ripard 2014-07-17  271  		readl(pchan->base + DMA_CHAN_CUR_PARA));
555859308723d8 Maxime Ripard 2014-07-17  272  }
555859308723d8 Maxime Ripard 2014-07-17  273  

:::::: The code at line 244 was first introduced by commit
:::::: 42c0d54e62369584f2491f072f405602ff504e0e dmaengine: sun6i: fix build failure on x86, xilinx targets

:::::: TO: Vinod Koul <vinod.koul@intel.com>
:::::: CC: Vinod Koul <vinod.koul@intel.com>

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

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

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

* drivers/dma/sun6i-dma.c:244:45: sparse: sparse: incorrect type in argument 1 (different address spaces)
@ 2020-11-15  7:00 ` kernel test robot
  0 siblings, 0 replies; 12+ messages in thread
From: kernel test robot @ 2020-11-15  7:00 UTC (permalink / raw)
  To: Greg Ungerer; +Cc: kbuild-all, linux-kernel, Luc Van Oostenryck

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   e28c0d7c92c89016c12a677616668957351e7542
commit: 005b73d0dd83c9cb9420a196bea8070cde30ecac m68knommu: __force type casts for raw IO access
date:   4 months ago
config: m68k-randconfig-s031-20201115 (attached as .config)
compiler: m68k-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-107-gaf3512a6-dirty
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=005b73d0dd83c9cb9420a196bea8070cde30ecac
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 005b73d0dd83c9cb9420a196bea8070cde30ecac
        # 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=m68k 

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/dma/sun6i-dma.c: note: in included file (through arch/m68k/include/asm/io.h, include/linux/scatterlist.h, include/linux/dmaengine.h):
   arch/m68k/include/asm/io_no.h:96:17: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int volatile [usertype] @@     got restricted __le32 [usertype] @@
   arch/m68k/include/asm/io_no.h:96:17: sparse:     expected unsigned int volatile [usertype]
   arch/m68k/include/asm/io_no.h:96:17: sparse:     got restricted __le32 [usertype]
   arch/m68k/include/asm/io_no.h:96:17: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int volatile [usertype] @@     got restricted __le32 [usertype] @@
   arch/m68k/include/asm/io_no.h:96:17: sparse:     expected unsigned int volatile [usertype]
   arch/m68k/include/asm/io_no.h:96:17: sparse:     got restricted __le32 [usertype]
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:96:17: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int volatile [usertype] @@     got restricted __le32 [usertype] @@
   arch/m68k/include/asm/io_no.h:96:17: sparse:     expected unsigned int volatile [usertype]
   arch/m68k/include/asm/io_no.h:96:17: sparse:     got restricted __le32 [usertype]
   arch/m68k/include/asm/io_no.h:96:17: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int volatile [usertype] @@     got restricted __le32 [usertype] @@
   arch/m68k/include/asm/io_no.h:96:17: sparse:     expected unsigned int volatile [usertype]
   arch/m68k/include/asm/io_no.h:96:17: sparse:     got restricted __le32 [usertype]
   arch/m68k/include/asm/io_no.h:96:17: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int volatile [usertype] @@     got restricted __le32 [usertype] @@
   arch/m68k/include/asm/io_no.h:96:17: sparse:     expected unsigned int volatile [usertype]
   arch/m68k/include/asm/io_no.h:96:17: sparse:     got restricted __le32 [usertype]
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
>> drivers/dma/sun6i-dma.c:244:45: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void *address @@     got void [noderef] __iomem *base @@
>> drivers/dma/sun6i-dma.c:244:45: sparse:     expected void *address
   drivers/dma/sun6i-dma.c:244:45: sparse:     got void [noderef] __iomem *base
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: too many warnings

vim +244 drivers/dma/sun6i-dma.c

555859308723d8 Maxime Ripard 2014-07-17  240  
555859308723d8 Maxime Ripard 2014-07-17  241  static inline void sun6i_dma_dump_chan_regs(struct sun6i_dma_dev *sdev,
555859308723d8 Maxime Ripard 2014-07-17  242  					    struct sun6i_pchan *pchan)
555859308723d8 Maxime Ripard 2014-07-17  243  {
42c0d54e623695 Vinod Koul    2014-07-28 @244  	phys_addr_t reg = virt_to_phys(pchan->base);
555859308723d8 Maxime Ripard 2014-07-17  245  
555859308723d8 Maxime Ripard 2014-07-17  246  	dev_dbg(sdev->slave.dev, "Chan %d reg: %pa\n"
555859308723d8 Maxime Ripard 2014-07-17  247  		"\t___en(%04x): \t0x%08x\n"
555859308723d8 Maxime Ripard 2014-07-17  248  		"\tpause(%04x): \t0x%08x\n"
555859308723d8 Maxime Ripard 2014-07-17  249  		"\tstart(%04x): \t0x%08x\n"
555859308723d8 Maxime Ripard 2014-07-17  250  		"\t__cfg(%04x): \t0x%08x\n"
555859308723d8 Maxime Ripard 2014-07-17  251  		"\t__src(%04x): \t0x%08x\n"
555859308723d8 Maxime Ripard 2014-07-17  252  		"\t__dst(%04x): \t0x%08x\n"
555859308723d8 Maxime Ripard 2014-07-17  253  		"\tcount(%04x): \t0x%08x\n"
555859308723d8 Maxime Ripard 2014-07-17  254  		"\t_para(%04x): \t0x%08x\n\n",
555859308723d8 Maxime Ripard 2014-07-17  255  		pchan->idx, &reg,
555859308723d8 Maxime Ripard 2014-07-17  256  		DMA_CHAN_ENABLE,
555859308723d8 Maxime Ripard 2014-07-17  257  		readl(pchan->base + DMA_CHAN_ENABLE),
555859308723d8 Maxime Ripard 2014-07-17  258  		DMA_CHAN_PAUSE,
555859308723d8 Maxime Ripard 2014-07-17  259  		readl(pchan->base + DMA_CHAN_PAUSE),
555859308723d8 Maxime Ripard 2014-07-17  260  		DMA_CHAN_LLI_ADDR,
555859308723d8 Maxime Ripard 2014-07-17  261  		readl(pchan->base + DMA_CHAN_LLI_ADDR),
555859308723d8 Maxime Ripard 2014-07-17  262  		DMA_CHAN_CUR_CFG,
555859308723d8 Maxime Ripard 2014-07-17  263  		readl(pchan->base + DMA_CHAN_CUR_CFG),
555859308723d8 Maxime Ripard 2014-07-17  264  		DMA_CHAN_CUR_SRC,
555859308723d8 Maxime Ripard 2014-07-17  265  		readl(pchan->base + DMA_CHAN_CUR_SRC),
555859308723d8 Maxime Ripard 2014-07-17  266  		DMA_CHAN_CUR_DST,
555859308723d8 Maxime Ripard 2014-07-17  267  		readl(pchan->base + DMA_CHAN_CUR_DST),
555859308723d8 Maxime Ripard 2014-07-17  268  		DMA_CHAN_CUR_CNT,
555859308723d8 Maxime Ripard 2014-07-17  269  		readl(pchan->base + DMA_CHAN_CUR_CNT),
555859308723d8 Maxime Ripard 2014-07-17  270  		DMA_CHAN_CUR_PARA,
555859308723d8 Maxime Ripard 2014-07-17  271  		readl(pchan->base + DMA_CHAN_CUR_PARA));
555859308723d8 Maxime Ripard 2014-07-17  272  }
555859308723d8 Maxime Ripard 2014-07-17  273  

:::::: The code at line 244 was first introduced by commit
:::::: 42c0d54e62369584f2491f072f405602ff504e0e dmaengine: sun6i: fix build failure on x86, xilinx targets

:::::: TO: Vinod Koul <vinod.koul@intel.com>
:::::: CC: Vinod Koul <vinod.koul@intel.com>

---
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: 23562 bytes --]

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

* drivers/dma/sun6i-dma.c:244:45: sparse: sparse: incorrect type in argument 1 (different address spaces)
@ 2020-11-15  7:00 ` kernel test robot
  0 siblings, 0 replies; 12+ messages in thread
From: kernel test robot @ 2020-11-15  7:00 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   e28c0d7c92c89016c12a677616668957351e7542
commit: 005b73d0dd83c9cb9420a196bea8070cde30ecac m68knommu: __force type casts for raw IO access
date:   4 months ago
config: m68k-randconfig-s031-20201115 (attached as .config)
compiler: m68k-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-107-gaf3512a6-dirty
        # https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=005b73d0dd83c9cb9420a196bea8070cde30ecac
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 005b73d0dd83c9cb9420a196bea8070cde30ecac
        # 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=m68k 

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/dma/sun6i-dma.c: note: in included file (through arch/m68k/include/asm/io.h, include/linux/scatterlist.h, include/linux/dmaengine.h):
   arch/m68k/include/asm/io_no.h:96:17: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int volatile [usertype] @@     got restricted __le32 [usertype] @@
   arch/m68k/include/asm/io_no.h:96:17: sparse:     expected unsigned int volatile [usertype]
   arch/m68k/include/asm/io_no.h:96:17: sparse:     got restricted __le32 [usertype]
   arch/m68k/include/asm/io_no.h:96:17: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int volatile [usertype] @@     got restricted __le32 [usertype] @@
   arch/m68k/include/asm/io_no.h:96:17: sparse:     expected unsigned int volatile [usertype]
   arch/m68k/include/asm/io_no.h:96:17: sparse:     got restricted __le32 [usertype]
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:96:17: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int volatile [usertype] @@     got restricted __le32 [usertype] @@
   arch/m68k/include/asm/io_no.h:96:17: sparse:     expected unsigned int volatile [usertype]
   arch/m68k/include/asm/io_no.h:96:17: sparse:     got restricted __le32 [usertype]
   arch/m68k/include/asm/io_no.h:96:17: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int volatile [usertype] @@     got restricted __le32 [usertype] @@
   arch/m68k/include/asm/io_no.h:96:17: sparse:     expected unsigned int volatile [usertype]
   arch/m68k/include/asm/io_no.h:96:17: sparse:     got restricted __le32 [usertype]
   arch/m68k/include/asm/io_no.h:96:17: sparse: sparse: incorrect type in assignment (different base types) @@     expected unsigned int volatile [usertype] @@     got restricted __le32 [usertype] @@
   arch/m68k/include/asm/io_no.h:96:17: sparse:     expected unsigned int volatile [usertype]
   arch/m68k/include/asm/io_no.h:96:17: sparse:     got restricted __le32 [usertype]
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
>> drivers/dma/sun6i-dma.c:244:45: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void *address @@     got void [noderef] __iomem *base @@
>> drivers/dma/sun6i-dma.c:244:45: sparse:     expected void *address
   drivers/dma/sun6i-dma.c:244:45: sparse:     got void [noderef] __iomem *base
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: cast to restricted __le32
   arch/m68k/include/asm/io_no.h:78:16: sparse: sparse: too many warnings

vim +244 drivers/dma/sun6i-dma.c

555859308723d8 Maxime Ripard 2014-07-17  240  
555859308723d8 Maxime Ripard 2014-07-17  241  static inline void sun6i_dma_dump_chan_regs(struct sun6i_dma_dev *sdev,
555859308723d8 Maxime Ripard 2014-07-17  242  					    struct sun6i_pchan *pchan)
555859308723d8 Maxime Ripard 2014-07-17  243  {
42c0d54e623695 Vinod Koul    2014-07-28 @244  	phys_addr_t reg = virt_to_phys(pchan->base);
555859308723d8 Maxime Ripard 2014-07-17  245  
555859308723d8 Maxime Ripard 2014-07-17  246  	dev_dbg(sdev->slave.dev, "Chan %d reg: %pa\n"
555859308723d8 Maxime Ripard 2014-07-17  247  		"\t___en(%04x): \t0x%08x\n"
555859308723d8 Maxime Ripard 2014-07-17  248  		"\tpause(%04x): \t0x%08x\n"
555859308723d8 Maxime Ripard 2014-07-17  249  		"\tstart(%04x): \t0x%08x\n"
555859308723d8 Maxime Ripard 2014-07-17  250  		"\t__cfg(%04x): \t0x%08x\n"
555859308723d8 Maxime Ripard 2014-07-17  251  		"\t__src(%04x): \t0x%08x\n"
555859308723d8 Maxime Ripard 2014-07-17  252  		"\t__dst(%04x): \t0x%08x\n"
555859308723d8 Maxime Ripard 2014-07-17  253  		"\tcount(%04x): \t0x%08x\n"
555859308723d8 Maxime Ripard 2014-07-17  254  		"\t_para(%04x): \t0x%08x\n\n",
555859308723d8 Maxime Ripard 2014-07-17  255  		pchan->idx, &reg,
555859308723d8 Maxime Ripard 2014-07-17  256  		DMA_CHAN_ENABLE,
555859308723d8 Maxime Ripard 2014-07-17  257  		readl(pchan->base + DMA_CHAN_ENABLE),
555859308723d8 Maxime Ripard 2014-07-17  258  		DMA_CHAN_PAUSE,
555859308723d8 Maxime Ripard 2014-07-17  259  		readl(pchan->base + DMA_CHAN_PAUSE),
555859308723d8 Maxime Ripard 2014-07-17  260  		DMA_CHAN_LLI_ADDR,
555859308723d8 Maxime Ripard 2014-07-17  261  		readl(pchan->base + DMA_CHAN_LLI_ADDR),
555859308723d8 Maxime Ripard 2014-07-17  262  		DMA_CHAN_CUR_CFG,
555859308723d8 Maxime Ripard 2014-07-17  263  		readl(pchan->base + DMA_CHAN_CUR_CFG),
555859308723d8 Maxime Ripard 2014-07-17  264  		DMA_CHAN_CUR_SRC,
555859308723d8 Maxime Ripard 2014-07-17  265  		readl(pchan->base + DMA_CHAN_CUR_SRC),
555859308723d8 Maxime Ripard 2014-07-17  266  		DMA_CHAN_CUR_DST,
555859308723d8 Maxime Ripard 2014-07-17  267  		readl(pchan->base + DMA_CHAN_CUR_DST),
555859308723d8 Maxime Ripard 2014-07-17  268  		DMA_CHAN_CUR_CNT,
555859308723d8 Maxime Ripard 2014-07-17  269  		readl(pchan->base + DMA_CHAN_CUR_CNT),
555859308723d8 Maxime Ripard 2014-07-17  270  		DMA_CHAN_CUR_PARA,
555859308723d8 Maxime Ripard 2014-07-17  271  		readl(pchan->base + DMA_CHAN_CUR_PARA));
555859308723d8 Maxime Ripard 2014-07-17  272  }
555859308723d8 Maxime Ripard 2014-07-17  273  

:::::: The code at line 244 was first introduced by commit
:::::: 42c0d54e62369584f2491f072f405602ff504e0e dmaengine: sun6i: fix build failure on x86, xilinx targets

:::::: TO: Vinod Koul <vinod.koul@intel.com>
:::::: CC: Vinod Koul <vinod.koul@intel.com>

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

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

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

* drivers/dma/sun6i-dma.c:244:45: sparse: sparse: incorrect type in argument 1 (different address spaces)
@ 2020-08-24 19:12 ` kernel test robot
  0 siblings, 0 replies; 12+ messages in thread
From: kernel test robot @ 2020-08-24 19:12 UTC (permalink / raw)
  To: Luc Van Oostenryck; +Cc: kbuild-all, linux-kernel

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   d012a7190fc1fd72ed48911e77ca97ba4521bccd
commit: 670d0a4b10704667765f7d18f7592993d02783aa sparse: use identifiers to define address spaces
date:   10 weeks ago
config: m68k-randconfig-s031-20200824 (attached as .config)
compiler: m68k-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-191-g10164920-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=m68k 

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/dma/sun6i-dma.c:297:9: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/dma/sun6i-dma.c:302:9: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/dma/sun6i-dma.c:348:15: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/dma/sun6i-dma.c:349:17: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/dma/sun6i-dma.c:455:19: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/dma/sun6i-dma.c:459:9: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/dma/sun6i-dma.c:461:9: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/dma/sun6i-dma.c:462:9: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/dma/sun6i-dma.c:544:26: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/dma/sun6i-dma.c:551:17: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/dma/sun6i-dma.c:848:17: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/dma/sun6i-dma.c:871:17: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/dma/sun6i-dma.c:911:17: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/dma/sun6i-dma.c:912:17: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/dma/sun6i-dma.c:228:9: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/dma/sun6i-dma.c:228:9: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/dma/sun6i-dma.c:228:9: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/dma/sun6i-dma.c:228:9: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/dma/sun6i-dma.c:228:9: sparse: sparse: cast removes address space '__iomem' of expression
>> drivers/dma/sun6i-dma.c:244:45: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void *address @@     got void [noderef] __iomem *base @@
   drivers/dma/sun6i-dma.c:244:45: sparse:     expected void *address
   drivers/dma/sun6i-dma.c:244:45: sparse:     got void [noderef] __iomem *base
   drivers/dma/sun6i-dma.c:246:9: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/dma/sun6i-dma.c:246:9: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/dma/sun6i-dma.c:246:9: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/dma/sun6i-dma.c:246:9: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/dma/sun6i-dma.c:246:9: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/dma/sun6i-dma.c:246:9: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/dma/sun6i-dma.c:246:9: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/dma/sun6i-dma.c:246:9: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/dma/sun6i-dma.c:1029:9: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/dma/sun6i-dma.c:1030:9: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/dma/sun6i-dma.c:1029:9: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/dma/sun6i-dma.c:1030:9: sparse: sparse: cast removes address space '__iomem' of expression

# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=670d0a4b10704667765f7d18f7592993d02783aa
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 670d0a4b10704667765f7d18f7592993d02783aa
vim +244 drivers/dma/sun6i-dma.c

555859308723d8 Maxime Ripard 2014-07-17  240  
555859308723d8 Maxime Ripard 2014-07-17  241  static inline void sun6i_dma_dump_chan_regs(struct sun6i_dma_dev *sdev,
555859308723d8 Maxime Ripard 2014-07-17  242  					    struct sun6i_pchan *pchan)
555859308723d8 Maxime Ripard 2014-07-17  243  {
42c0d54e623695 Vinod Koul    2014-07-28 @244  	phys_addr_t reg = virt_to_phys(pchan->base);
555859308723d8 Maxime Ripard 2014-07-17  245  
555859308723d8 Maxime Ripard 2014-07-17  246  	dev_dbg(sdev->slave.dev, "Chan %d reg: %pa\n"
555859308723d8 Maxime Ripard 2014-07-17  247  		"\t___en(%04x): \t0x%08x\n"
555859308723d8 Maxime Ripard 2014-07-17  248  		"\tpause(%04x): \t0x%08x\n"
555859308723d8 Maxime Ripard 2014-07-17  249  		"\tstart(%04x): \t0x%08x\n"
555859308723d8 Maxime Ripard 2014-07-17  250  		"\t__cfg(%04x): \t0x%08x\n"
555859308723d8 Maxime Ripard 2014-07-17  251  		"\t__src(%04x): \t0x%08x\n"
555859308723d8 Maxime Ripard 2014-07-17  252  		"\t__dst(%04x): \t0x%08x\n"
555859308723d8 Maxime Ripard 2014-07-17  253  		"\tcount(%04x): \t0x%08x\n"
555859308723d8 Maxime Ripard 2014-07-17  254  		"\t_para(%04x): \t0x%08x\n\n",
555859308723d8 Maxime Ripard 2014-07-17  255  		pchan->idx, &reg,
555859308723d8 Maxime Ripard 2014-07-17  256  		DMA_CHAN_ENABLE,
555859308723d8 Maxime Ripard 2014-07-17  257  		readl(pchan->base + DMA_CHAN_ENABLE),
555859308723d8 Maxime Ripard 2014-07-17  258  		DMA_CHAN_PAUSE,
555859308723d8 Maxime Ripard 2014-07-17  259  		readl(pchan->base + DMA_CHAN_PAUSE),
555859308723d8 Maxime Ripard 2014-07-17  260  		DMA_CHAN_LLI_ADDR,
555859308723d8 Maxime Ripard 2014-07-17  261  		readl(pchan->base + DMA_CHAN_LLI_ADDR),
555859308723d8 Maxime Ripard 2014-07-17  262  		DMA_CHAN_CUR_CFG,
555859308723d8 Maxime Ripard 2014-07-17  263  		readl(pchan->base + DMA_CHAN_CUR_CFG),
555859308723d8 Maxime Ripard 2014-07-17  264  		DMA_CHAN_CUR_SRC,
555859308723d8 Maxime Ripard 2014-07-17  265  		readl(pchan->base + DMA_CHAN_CUR_SRC),
555859308723d8 Maxime Ripard 2014-07-17  266  		DMA_CHAN_CUR_DST,
555859308723d8 Maxime Ripard 2014-07-17  267  		readl(pchan->base + DMA_CHAN_CUR_DST),
555859308723d8 Maxime Ripard 2014-07-17  268  		DMA_CHAN_CUR_CNT,
555859308723d8 Maxime Ripard 2014-07-17  269  		readl(pchan->base + DMA_CHAN_CUR_CNT),
555859308723d8 Maxime Ripard 2014-07-17  270  		DMA_CHAN_CUR_PARA,
555859308723d8 Maxime Ripard 2014-07-17  271  		readl(pchan->base + DMA_CHAN_CUR_PARA));
555859308723d8 Maxime Ripard 2014-07-17  272  }
555859308723d8 Maxime Ripard 2014-07-17  273  

:::::: The code at line 244 was first introduced by commit
:::::: 42c0d54e62369584f2491f072f405602ff504e0e dmaengine: sun6i: fix build failure on x86, xilinx targets

:::::: TO: Vinod Koul <vinod.koul@intel.com>
:::::: CC: Vinod Koul <vinod.koul@intel.com>

---
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: 29469 bytes --]

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

* drivers/dma/sun6i-dma.c:244:45: sparse: sparse: incorrect type in argument 1 (different address spaces)
@ 2020-08-24 19:12 ` kernel test robot
  0 siblings, 0 replies; 12+ messages in thread
From: kernel test robot @ 2020-08-24 19:12 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   d012a7190fc1fd72ed48911e77ca97ba4521bccd
commit: 670d0a4b10704667765f7d18f7592993d02783aa sparse: use identifiers to define address spaces
date:   10 weeks ago
config: m68k-randconfig-s031-20200824 (attached as .config)
compiler: m68k-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-191-g10164920-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=m68k 

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/dma/sun6i-dma.c:297:9: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/dma/sun6i-dma.c:302:9: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/dma/sun6i-dma.c:348:15: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/dma/sun6i-dma.c:349:17: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/dma/sun6i-dma.c:455:19: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/dma/sun6i-dma.c:459:9: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/dma/sun6i-dma.c:461:9: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/dma/sun6i-dma.c:462:9: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/dma/sun6i-dma.c:544:26: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/dma/sun6i-dma.c:551:17: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/dma/sun6i-dma.c:848:17: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/dma/sun6i-dma.c:871:17: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/dma/sun6i-dma.c:911:17: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/dma/sun6i-dma.c:912:17: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/dma/sun6i-dma.c:228:9: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/dma/sun6i-dma.c:228:9: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/dma/sun6i-dma.c:228:9: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/dma/sun6i-dma.c:228:9: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/dma/sun6i-dma.c:228:9: sparse: sparse: cast removes address space '__iomem' of expression
>> drivers/dma/sun6i-dma.c:244:45: sparse: sparse: incorrect type in argument 1 (different address spaces) @@     expected void *address @@     got void [noderef] __iomem *base @@
   drivers/dma/sun6i-dma.c:244:45: sparse:     expected void *address
   drivers/dma/sun6i-dma.c:244:45: sparse:     got void [noderef] __iomem *base
   drivers/dma/sun6i-dma.c:246:9: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/dma/sun6i-dma.c:246:9: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/dma/sun6i-dma.c:246:9: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/dma/sun6i-dma.c:246:9: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/dma/sun6i-dma.c:246:9: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/dma/sun6i-dma.c:246:9: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/dma/sun6i-dma.c:246:9: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/dma/sun6i-dma.c:246:9: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/dma/sun6i-dma.c:1029:9: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/dma/sun6i-dma.c:1030:9: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/dma/sun6i-dma.c:1029:9: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/dma/sun6i-dma.c:1030:9: sparse: sparse: cast removes address space '__iomem' of expression

# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=670d0a4b10704667765f7d18f7592993d02783aa
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 670d0a4b10704667765f7d18f7592993d02783aa
vim +244 drivers/dma/sun6i-dma.c

555859308723d8 Maxime Ripard 2014-07-17  240  
555859308723d8 Maxime Ripard 2014-07-17  241  static inline void sun6i_dma_dump_chan_regs(struct sun6i_dma_dev *sdev,
555859308723d8 Maxime Ripard 2014-07-17  242  					    struct sun6i_pchan *pchan)
555859308723d8 Maxime Ripard 2014-07-17  243  {
42c0d54e623695 Vinod Koul    2014-07-28 @244  	phys_addr_t reg = virt_to_phys(pchan->base);
555859308723d8 Maxime Ripard 2014-07-17  245  
555859308723d8 Maxime Ripard 2014-07-17  246  	dev_dbg(sdev->slave.dev, "Chan %d reg: %pa\n"
555859308723d8 Maxime Ripard 2014-07-17  247  		"\t___en(%04x): \t0x%08x\n"
555859308723d8 Maxime Ripard 2014-07-17  248  		"\tpause(%04x): \t0x%08x\n"
555859308723d8 Maxime Ripard 2014-07-17  249  		"\tstart(%04x): \t0x%08x\n"
555859308723d8 Maxime Ripard 2014-07-17  250  		"\t__cfg(%04x): \t0x%08x\n"
555859308723d8 Maxime Ripard 2014-07-17  251  		"\t__src(%04x): \t0x%08x\n"
555859308723d8 Maxime Ripard 2014-07-17  252  		"\t__dst(%04x): \t0x%08x\n"
555859308723d8 Maxime Ripard 2014-07-17  253  		"\tcount(%04x): \t0x%08x\n"
555859308723d8 Maxime Ripard 2014-07-17  254  		"\t_para(%04x): \t0x%08x\n\n",
555859308723d8 Maxime Ripard 2014-07-17  255  		pchan->idx, &reg,
555859308723d8 Maxime Ripard 2014-07-17  256  		DMA_CHAN_ENABLE,
555859308723d8 Maxime Ripard 2014-07-17  257  		readl(pchan->base + DMA_CHAN_ENABLE),
555859308723d8 Maxime Ripard 2014-07-17  258  		DMA_CHAN_PAUSE,
555859308723d8 Maxime Ripard 2014-07-17  259  		readl(pchan->base + DMA_CHAN_PAUSE),
555859308723d8 Maxime Ripard 2014-07-17  260  		DMA_CHAN_LLI_ADDR,
555859308723d8 Maxime Ripard 2014-07-17  261  		readl(pchan->base + DMA_CHAN_LLI_ADDR),
555859308723d8 Maxime Ripard 2014-07-17  262  		DMA_CHAN_CUR_CFG,
555859308723d8 Maxime Ripard 2014-07-17  263  		readl(pchan->base + DMA_CHAN_CUR_CFG),
555859308723d8 Maxime Ripard 2014-07-17  264  		DMA_CHAN_CUR_SRC,
555859308723d8 Maxime Ripard 2014-07-17  265  		readl(pchan->base + DMA_CHAN_CUR_SRC),
555859308723d8 Maxime Ripard 2014-07-17  266  		DMA_CHAN_CUR_DST,
555859308723d8 Maxime Ripard 2014-07-17  267  		readl(pchan->base + DMA_CHAN_CUR_DST),
555859308723d8 Maxime Ripard 2014-07-17  268  		DMA_CHAN_CUR_CNT,
555859308723d8 Maxime Ripard 2014-07-17  269  		readl(pchan->base + DMA_CHAN_CUR_CNT),
555859308723d8 Maxime Ripard 2014-07-17  270  		DMA_CHAN_CUR_PARA,
555859308723d8 Maxime Ripard 2014-07-17  271  		readl(pchan->base + DMA_CHAN_CUR_PARA));
555859308723d8 Maxime Ripard 2014-07-17  272  }
555859308723d8 Maxime Ripard 2014-07-17  273  

:::::: The code at line 244 was first introduced by commit
:::::: 42c0d54e62369584f2491f072f405602ff504e0e dmaengine: sun6i: fix build failure on x86, xilinx targets

:::::: TO: Vinod Koul <vinod.koul@intel.com>
:::::: CC: Vinod Koul <vinod.koul@intel.com>

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

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

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

end of thread, other threads:[~2022-01-01 14:27 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-06-28  7:42 drivers/dma/sun6i-dma.c:244:45: sparse: sparse: incorrect type in argument 1 (different address spaces) kernel test robot
2020-06-28  7:42 ` kernel test robot
2020-08-24 19:12 kernel test robot
2020-08-24 19:12 ` kernel test robot
2020-11-15  7:00 kernel test robot
2020-11-15  7:00 ` kernel test robot
2021-11-20  0:50 kernel test robot
2021-11-20  0:50 ` kernel test robot
2021-11-25 15:56 kernel test robot
2021-11-25 15:56 ` kernel test robot
2022-01-01 14:27 kernel test robot
2022-01-01 14:27 ` kernel test robot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.