CC: [email protected]
CC: [email protected]
TO: Anup Patel <[email protected]>

tree:   https://github.com/avpatel/linux.git riscv_kvm_aia_v1
head:   55f532babde5bfa1582e1249866fcedd919ea110
commit: d5e4258d34e7ab1ee318c0e2ffa710e5a5df8709 [35/39] irqchip: Add RISC-V 
incoming MSI controller driver
:::::: branch date: 13 hours ago
:::::: commit date: 2 days ago
config: riscv-randconfig-s031-20210805 (attached as .config)
compiler: riscv64-linux-gcc (GCC) 10.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-348-gf0e6938b-dirty
        # 
https://github.com/avpatel/linux/commit/d5e4258d34e7ab1ee318c0e2ffa710e5a5df8709
        git remote add avpatel https://github.com/avpatel/linux.git
        git fetch --no-tags avpatel riscv_kvm_aia_v1
        git checkout d5e4258d34e7ab1ee318c0e2ffa710e5a5df8709
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-10.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 <[email protected]>


sparse warnings: (new ones prefixed by >>)
   drivers/irqchip/irq-riscv-imsic.c:153:14: sparse: sparse: symbol 
'imsic_cpu_page_virt' redeclared with different type (different address spaces):
>> drivers/irqchip/irq-riscv-imsic.c:153:14: sparse:    void [noderef] __iomem 
>> *extern [addressable] [toplevel] imsic_cpu_page_virt( ... )
   drivers/irqchip/irq-riscv-imsic.c: note: in included file:
   include/linux/irqchip/riscv-imsic.h:45:13: sparse: note: previously declared 
as:
>> include/linux/irqchip/riscv-imsic.h:45:13: sparse:    void *extern 
>> [addressable] [toplevel] imsic_cpu_page_virt( ... )

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

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

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/[email protected]

Attachment: .config.gz
Description: application/gzip

_______________________________________________
kbuild mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to