Hi Junhui,

kernel test robot noticed the following build warnings:

[auto build test WARNING on 8630c59e99363c4b655788fd01134aef9bcd9264]

url:    
https://github.com/intel-lab-lkp/linux/commits/Junhui-Liu/dt-bindings-remoteproc-Add-C906L-rproc-for-Sophgo-CV1800B-SoC/20250608-104249
base:   8630c59e99363c4b655788fd01134aef9bcd9264
patch link:    
https://lore.kernel.org/r/20250608-cv1800-rproc-v1-2-57cf66cdf6a3%40pigmoral.tech
patch subject: [PATCH 2/2] drivers: remoteproc: Add C906L controller for Sophgo 
CV1800B SoC
config: nios2-randconfig-r132-20250610 
(https://download.01.org/0day-ci/archive/20250610/202506101252.4hrolbl7-...@intel.com/config)
compiler: nios2-linux-gcc (GCC) 8.5.0
reproduce: 
(https://download.01.org/0day-ci/archive/20250610/202506101252.4hrolbl7-...@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 <l...@intel.com>
| Closes: 
https://lore.kernel.org/oe-kbuild-all/202506101252.4hrolbl7-...@intel.com/

sparse warnings: (new ones prefixed by >>)
>> drivers/remoteproc/sophgo_cv1800b_c906l.c:41:12: sparse: sparse: incorrect 
>> type in assignment (different address spaces) @@     expected void *va @@    
>>  got void [noderef] __iomem * @@
   drivers/remoteproc/sophgo_cv1800b_c906l.c:41:12: sparse:     expected void 
*va
   drivers/remoteproc/sophgo_cv1800b_c906l.c:41:12: sparse:     got void 
[noderef] __iomem *
>> drivers/remoteproc/sophgo_cv1800b_c906l.c:54:20: sparse: sparse: incorrect 
>> type in argument 1 (different address spaces) @@     expected void [noderef] 
>> __iomem *addr @@     got void *va @@
   drivers/remoteproc/sophgo_cv1800b_c906l.c:54:20: sparse:     expected void 
[noderef] __iomem *addr
   drivers/remoteproc/sophgo_cv1800b_c906l.c:54:20: sparse:     got void *va

vim +41 drivers/remoteproc/sophgo_cv1800b_c906l.c

    35  
    36  static int cv1800b_c906l_mem_alloc(struct rproc *rproc,
    37                                     struct rproc_mem_entry *mem)
    38  {
    39          void *va;
    40  
  > 41          va = ioremap_wc(mem->dma, mem->len);
    42          if (IS_ERR_OR_NULL(va))
    43                  return -ENOMEM;
    44  
    45          /* Update memory entry va */
    46          mem->va = va;
    47  
    48          return 0;
    49  }
    50  
    51  static int cv1800b_c906l_mem_release(struct rproc *rproc,
    52                                       struct rproc_mem_entry *mem)
    53  {
  > 54          iounmap(mem->va);
    55  
    56          return 0;
    57  }
    58  

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

Reply via email to