lkml.org 
[lkml]   [2021]   [Jul]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject[avpatel:riscv_aia_v1 16/18] drivers/irqchip/irq-riscv-imsic.c:162:32: sparse: sparse: incorrect type in return expression (different address spaces)
tree:   https://github.com/avpatel/linux.git riscv_aia_v1
head: 5d6eb4c6c04e1ef92602e706e2484415ac3234a1
commit: 6cf1dc094f6ff07059469b7530a4d7c522bdd15c [16/18] irqchip: Add RISC-V incoming MSI controller driver
config: riscv-randconfig-s031-20210705 (attached as .config)
compiler: riscv32-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-341-g8af24329-dirty
# https://github.com/avpatel/linux/commit/6cf1dc094f6ff07059469b7530a4d7c522bdd15c
git remote add avpatel https://github.com/avpatel/linux.git
git fetch --no-tags avpatel riscv_aia_v1
git checkout 6cf1dc094f6ff07059469b7530a4d7c522bdd15c
# 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=riscv

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/irqchip/irq-riscv-imsic.c:162:32: sparse: sparse: incorrect type in return expression (different address spaces) @@ expected void * @@ got void [noderef] __iomem * @@
drivers/irqchip/irq-riscv-imsic.c:162:32: sparse: expected void *
drivers/irqchip/irq-riscv-imsic.c:162:32: sparse: got void [noderef] __iomem *
>> drivers/irqchip/irq-riscv-imsic.c:397:24: sparse: sparse: incorrect type in assignment (different address spaces) @@ expected void [noderef] __iomem *msi_va @@ got void * @@
drivers/irqchip/irq-riscv-imsic.c:397:24: sparse: expected void [noderef] __iomem *msi_va
drivers/irqchip/irq-riscv-imsic.c:397:24: sparse: got void *

vim +162 drivers/irqchip/irq-riscv-imsic.c

151
152 void *imsic_cpu_page_virt(unsigned int cpu, unsigned int guest_index)
153 {
154 struct imsic_handler *handler;
155
156 handler = per_cpu_ptr(&imsic_handlers, cpu);
157 if (!handler || !handler->priv)
158 return NULL;
159 if (BIT(handler->priv->guest_index_bits) <= guest_index)
160 return NULL;
161
> 162 return handler->msi_va + (guest_index * IMSIC_MMIO_PAGE_SZ);
163 }
164 EXPORT_SYMBOL_GPL(imsic_cpu_page_virt);
165

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
[unhandled content-type:application/gzip]
\
 
 \ /
  Last update: 2021-07-06 04:13    [W:0.047 / U:0.168 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site