CC: [email protected] CC: [email protected] TO: Anup Patel <[email protected]>
tree: https://github.com/avpatel/linux.git riscv_kvm_aia_v1 head: eb55ca3817a59020fc1e3d5a5de0a5adcebbedd0 commit: 2ad4dc808c3e0175e4975b41cecbb996ee217731 [28/40] irqchip: Add incoming MSI controller driver :::::: branch date: 3 days ago :::::: commit date: 3 days ago config: riscv-randconfig-s032-20211209 (https://download.01.org/0day-ci/archive/20211209/[email protected]/config) compiler: riscv64-linux-gcc (GCC) 11.2.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.4-dirty # https://github.com/avpatel/linux/commit/2ad4dc808c3e0175e4975b41cecbb996ee217731 git remote add avpatel https://github.com/avpatel/linux.git git fetch --no-tags avpatel riscv_kvm_aia_v1 git checkout 2ad4dc808c3e0175e4975b41cecbb996ee217731 # save the config file to linux build tree mkdir build_dir COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-11.2.0 make.cross C=1 CF='-fdiagnostic-prefix -D__CHECK_ENDIAN__' O=build_dir ARCH=riscv SHELL=/bin/bash drivers/irqchip/ 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:152:14: sparse: sparse: symbol 'imsic_cpu_page_virt' redeclared with different type (different address spaces): >> drivers/irqchip/irq-riscv-imsic.c:152: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:46:13: sparse: note: previously declared as: >> include/linux/irqchip/riscv-imsic.h:46:13: sparse: void *extern >> [addressable] [toplevel] imsic_cpu_page_virt( ... ) vim +152 drivers/irqchip/irq-riscv-imsic.c 2ad4dc808c3e01 Anup Patel 2021-04-26 151 2ad4dc808c3e01 Anup Patel 2021-04-26 @152 void __iomem *imsic_cpu_page_virt(unsigned int cpu, unsigned int guest_index) 2ad4dc808c3e01 Anup Patel 2021-04-26 153 { 2ad4dc808c3e01 Anup Patel 2021-04-26 154 struct imsic_handler *handler; 2ad4dc808c3e01 Anup Patel 2021-04-26 155 2ad4dc808c3e01 Anup Patel 2021-04-26 156 handler = per_cpu_ptr(&imsic_handlers, cpu); 2ad4dc808c3e01 Anup Patel 2021-04-26 157 if (!handler || !handler->priv) 2ad4dc808c3e01 Anup Patel 2021-04-26 158 return NULL; 2ad4dc808c3e01 Anup Patel 2021-04-26 159 if (BIT(handler->priv->guest_index_bits) <= guest_index) 2ad4dc808c3e01 Anup Patel 2021-04-26 160 return NULL; 2ad4dc808c3e01 Anup Patel 2021-04-26 161 2ad4dc808c3e01 Anup Patel 2021-04-26 162 return handler->msi_va + (guest_index * IMSIC_MMIO_PAGE_SZ); 2ad4dc808c3e01 Anup Patel 2021-04-26 163 } 2ad4dc808c3e01 Anup Patel 2021-04-26 164 EXPORT_SYMBOL_GPL(imsic_cpu_page_virt); 2ad4dc808c3e01 Anup Patel 2021-04-26 165 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/[email protected] _______________________________________________ kbuild mailing list -- [email protected] To unsubscribe send an email to [email protected]
