linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [avpatel:riscv_aia_v1 16/18] drivers/irqchip/irq-riscv-imsic.c:162:32: sparse: sparse: incorrect type in return expression (different address spaces)
@ 2021-07-06  2:12 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-07-06  2:12 UTC (permalink / raw)
  To: Anup Patel; +Cc: kbuild-all, linux-kernel

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

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

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-07-06  2:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-06  2:12 [avpatel:riscv_aia_v1 16/18] drivers/irqchip/irq-riscv-imsic.c:162:32: sparse: sparse: incorrect type in return expression (different address spaces) kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).