[linux-next:master 11808/12208] drivers/dma/fsl-edma-common.c:76:15: sparse: sparse: cast removes address space '__iomem' of expression

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   e3f80d3eae76c3557b3c9b5938ad01c0e6cf25ec
commit: 72f5801a4e2b7122ed8ff5672ea965a0b3458e6b [11808/12208] dmaengine: fsl-edma: integrate v3 support
config: sparc64-randconfig-r121-20230823 (https://download.01.org/0day-ci/archive/20230823/202308231917.NfCYTXDO-lkp@xxxxxxxxx/config)
compiler: sparc64-linux-gcc (GCC) 13.2.0
reproduce: (https://download.01.org/0day-ci/archive/20230823/202308231917.NfCYTXDO-lkp@xxxxxxxxx/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@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202308231917.NfCYTXDO-lkp@xxxxxxxxx/

sparse warnings: (new ones prefixed by >>)
>> drivers/dma/fsl-edma-common.c:76:15: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/dma/fsl-edma-common.c:93:9: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/dma/fsl-edma-common.c:96:17: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/dma/fsl-edma-common.c:98:15: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/dma/fsl-edma-common.c:100:9: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/dma/fsl-edma-common.c:125:19: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/dma/fsl-edma-common.c:131:17: sparse: sparse: cast removes address space '__iomem' of expression
   drivers/dma/fsl-edma-common.c:134:9: sparse: sparse: cast removes address space '__iomem' of expression

vim +/__iomem +76 drivers/dma/fsl-edma-common.c

    70	
    71	static void fsl_edma3_enable_request(struct fsl_edma_chan *fsl_chan)
    72	{
    73		u32 val, flags;
    74	
    75		flags = fsl_edma_drvflags(fsl_chan);
  > 76		val = edma_readl_chreg(fsl_chan, ch_sbr);
    77		/* Remote/local swapped wrongly on iMX8 QM Audio edma */
    78		if (flags & FSL_EDMA_DRV_QUIRK_SWAPPED) {
    79			if (!fsl_chan->is_rxchan)
    80				val |= EDMA_V3_CH_SBR_RD;
    81			else
    82				val |= EDMA_V3_CH_SBR_WR;
    83		} else {
    84			if (fsl_chan->is_rxchan)
    85				val |= EDMA_V3_CH_SBR_RD;
    86			else
    87				val |= EDMA_V3_CH_SBR_WR;
    88		}
    89	
    90		if (fsl_chan->is_remote)
    91			val &= ~(EDMA_V3_CH_SBR_RD | EDMA_V3_CH_SBR_WR);
    92	
    93		edma_writel_chreg(fsl_chan, val, ch_sbr);
    94	
    95		if (flags & FSL_EDMA_DRV_HAS_CHMUX)
    96			edma_writel_chreg(fsl_chan, fsl_chan->srcid, ch_mux);
    97	
    98		val = edma_readl_chreg(fsl_chan, ch_csr);
    99		val |= EDMA_V3_CH_CSR_ERQ;
   100		edma_writel_chreg(fsl_chan, val, ch_csr);
   101	}
   102	

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




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux