lkml.org 
[lkml]   [2023]   [Nov]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectdrivers/remoteproc/xlnx_r5_remoteproc.c:209:20: sparse: sparse: cast removes address space '__iomem' of expression
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: e392ea4d4d00880bf94550151b1ace4f88a4b17a
commit: 6b291e8020a8bd90e94ee13d61f251040425c90d drivers: remoteproc: Add Xilinx r5 remoteproc driver
date: 11 months ago
config: arm64-randconfig-r122-20231102 (https://download.01.org/0day-ci/archive/20231104/202311040724.0CdOhSe6-lkp@intel.com/config)
compiler: aarch64-linux-gcc (GCC) 13.2.0
reproduce: (https://download.01.org/0day-ci/archive/20231104/202311040724.0CdOhSe6-lkp@intel.com/reproduce)

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

sparse warnings: (new ones prefixed by >>)
>> drivers/remoteproc/xlnx_r5_remoteproc.c:209:20: sparse: sparse: cast removes address space '__iomem' of expression
drivers/remoteproc/xlnx_r5_remoteproc.c:315:20: sparse: sparse: cast removes address space '__iomem' of expression

vim +/__iomem +209 drivers/remoteproc/xlnx_r5_remoteproc.c

190
191 /*
192 * zynqmp_r5_mem_region_map()
193 * @rproc: single R5 core's corresponding rproc instance
194 * @mem: mem descriptor to map reserved memory-regions
195 *
196 * Callback to map va for memory-region's carveout.
197 *
198 * return 0 on success, otherwise non-zero value on failure
199 */
200 static int zynqmp_r5_mem_region_map(struct rproc *rproc,
201 struct rproc_mem_entry *mem)
202 {
203 void __iomem *va;
204
205 va = ioremap_wc(mem->dma, mem->len);
206 if (IS_ERR_OR_NULL(va))
207 return -ENOMEM;
208
> 209 mem->va = (void *)va;
210
211 return 0;
212 }
213

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

\
 
 \ /
  Last update: 2023-11-20 13:48    [W:0.081 / U:0.092 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site