[avpatel:riscv_kvm_aia_v1 39/41] include/linux/irqchip/riscv-imsic.h:61:10: error: use of undeclared identifier 'ENODEV'
From: kernel test robot
Date: Wed Aug 11 2021 - 16:17:56 EST
tree: https://github.com/avpatel/linux.git riscv_kvm_aia_v1
head: 9a2d1d388df8ab52feb55ad9ef378b083fdab478
commit: 3239d0fad48d4b7fab5b275cef7889fac99f53ca [39/41] RISC-V: KVM: Initial skeletal support for in-kernel AIA irqchip
config: riscv-randconfig-r022-20210810 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project d39ebdae674c8efc84ebe8dc32716ec353220530)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# https://github.com/avpatel/linux/commit/3239d0fad48d4b7fab5b275cef7889fac99f53ca
git remote add avpatel https://github.com/avpatel/linux.git
git fetch --no-tags avpatel riscv_kvm_aia_v1
git checkout 3239d0fad48d4b7fab5b275cef7889fac99f53ca
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross O=build_dir ARCH=riscv SHELL=/bin/bash
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>
All errors (new ones prefixed by >>):
In file included from arch/riscv/kvm/aia/aia.c:10:
>> include/linux/irqchip/riscv-imsic.h:61:10: error: use of undeclared identifier 'ENODEV'
return -ENODEV;
^
1 error generated.
vim +/ENODEV +61 include/linux/irqchip/riscv-imsic.h
b6d8139e22dcf8 Anup Patel 2021-04-26 56
b6d8139e22dcf8 Anup Patel 2021-04-26 57 static inline int imsic_cpu_page_phys(unsigned int cpu,
b6d8139e22dcf8 Anup Patel 2021-04-26 58 unsigned int guest_index,
b6d8139e22dcf8 Anup Patel 2021-04-26 59 phys_addr_t *out_msi_pa)
b6d8139e22dcf8 Anup Patel 2021-04-26 60 {
b6d8139e22dcf8 Anup Patel 2021-04-26 @61 return -ENODEV;
b6d8139e22dcf8 Anup Patel 2021-04-26 62 }
b6d8139e22dcf8 Anup Patel 2021-04-26 63
:::::: The code at line 61 was first introduced by commit
:::::: b6d8139e22dcf8bcfe9a4c89b1dde6c59591eab8 irqchip: Add RISC-V incoming MSI controller driver
:::::: TO: Anup Patel <anup.patel@xxxxxxx>
:::::: CC: Anup Patel <anup@xxxxxxxxxxxxxx>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx
Attachment:
.config.gz
Description: application/gzip