All of lore.kernel.org
 help / color / mirror / Atom feed
* [avpatel:riscv_aia_v1 16/18] drivers/irqchip/irq-riscv-imsic.c:180:29: sparse: sparse: incorrect type in assignment (different address spaces)
@ 2021-06-29  1:28 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-06-29  1:28 UTC (permalink / raw)
  To: kbuild-all

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

tree:   https://github.com/avpatel/linux.git riscv_aia_v1
head:   2a971916522ad5f6785a92cf4f3877b695c8d1a7
commit: 4f34d2a9d2f77117d4c6c4d3419dd478230c915f [16/18] irqchip: Add RISC-V incoming MSI controller driver
config: riscv-randconfig-s032-20210629 (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/4f34d2a9d2f77117d4c6c4d3419dd478230c915f
        git remote add avpatel https://github.com/avpatel/linux.git
        git fetch --no-tags avpatel riscv_aia_v1
        git checkout 4f34d2a9d2f77117d4c6c4d3419dd478230c915f
        # 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:180:29: sparse: sparse: incorrect type in assignment (different address spaces) @@     expected void * @@     got void [noderef] __iomem *msi_va @@
   drivers/irqchip/irq-riscv-imsic.c:180:29: sparse:     expected void *
   drivers/irqchip/irq-riscv-imsic.c:180:29: sparse:     got void [noderef] __iomem *msi_va
>> drivers/irqchip/irq-riscv-imsic.c:382:51: sparse: sparse: incorrect type in argument 2 (different address spaces) @@     expected void **out_msi_va @@     got void [noderef] __iomem ** @@
   drivers/irqchip/irq-riscv-imsic.c:382:51: sparse:     expected void **out_msi_va
   drivers/irqchip/irq-riscv-imsic.c:382:51: sparse:     got void [noderef] __iomem **

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

   170	
   171	static int imsic_get_cpu_msi_virt(unsigned int cpu, void **out_msi_va)
   172	{
   173		struct imsic_handler *handler;
   174	
   175		handler = per_cpu_ptr(&imsic_handlers, cpu);
   176		if (!handler->priv)
   177			return -ENODEV;
   178	
   179		if (out_msi_va)
 > 180			*out_msi_va = handler->msi_va;
   181	
   182		return 0;
   183	}
   184	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org

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

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

only message in thread, other threads:[~2021-06-29  1:28 UTC | newest]

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.