tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master head: bdcc9f6a568275aed4cc32fd2312432d2ff1b704 commit: 8fb2046180a0ad347f2e5bcae760dca67e65aa73 [6154/12841] KVM: arm64: Move early handlers to per-EC handlers config: arm64-randconfig-r033-20211027 (attached as .config) compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project 5db7568a6a1fcb408eb8988abdaff2a225a8eb72) 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 # install arm64 cross compiling tool for clang build # apt-get install binutils-aarch64-linux-gnu # https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/commit/?id=8fb2046180a0ad347f2e5bcae760dca67e65aa73 git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git git fetch --no-tags linux-next master git checkout 8fb2046180a0ad347f2e5bcae760dca67e65aa73 # save the attached .config to linux build tree COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=arm64 If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <lkp@xxxxxxxxx> All warnings (new ones prefixed by >>): >> arch/arm64/kvm/hyp/nvhe/switch.c:163:26: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides] [ESR_ELx_EC_CP15_32] = kvm_hyp_handle_cp15_32, ^~~~~~~~~~~~~~~~~~~~~~ arch/arm64/kvm/hyp/nvhe/switch.c:162:28: note: previous initialization is here [0 ... ESR_ELx_EC_MAX] = NULL, ^~~~ include/linux/stddef.h:8:14: note: expanded from macro 'NULL' #define NULL ((void *)0) ^~~~~~~~~~~ arch/arm64/kvm/hyp/nvhe/switch.c:164:24: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides] [ESR_ELx_EC_SYS64] = kvm_hyp_handle_sysreg, ^~~~~~~~~~~~~~~~~~~~~ arch/arm64/kvm/hyp/nvhe/switch.c:162:28: note: previous initialization is here [0 ... ESR_ELx_EC_MAX] = NULL, ^~~~ include/linux/stddef.h:8:14: note: expanded from macro 'NULL' #define NULL ((void *)0) ^~~~~~~~~~~ arch/arm64/kvm/hyp/nvhe/switch.c:165:22: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides] [ESR_ELx_EC_SVE] = kvm_hyp_handle_fpsimd, ^~~~~~~~~~~~~~~~~~~~~ arch/arm64/kvm/hyp/nvhe/switch.c:162:28: note: previous initialization is here [0 ... ESR_ELx_EC_MAX] = NULL, ^~~~ include/linux/stddef.h:8:14: note: expanded from macro 'NULL' #define NULL ((void *)0) ^~~~~~~~~~~ arch/arm64/kvm/hyp/nvhe/switch.c:166:27: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides] [ESR_ELx_EC_FP_ASIMD] = kvm_hyp_handle_fpsimd, ^~~~~~~~~~~~~~~~~~~~~ arch/arm64/kvm/hyp/nvhe/switch.c:162:28: note: previous initialization is here [0 ... ESR_ELx_EC_MAX] = NULL, ^~~~ include/linux/stddef.h:8:14: note: expanded from macro 'NULL' #define NULL ((void *)0) ^~~~~~~~~~~ arch/arm64/kvm/hyp/nvhe/switch.c:167:27: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides] [ESR_ELx_EC_IABT_LOW] = kvm_hyp_handle_iabt_low, ^~~~~~~~~~~~~~~~~~~~~~~ arch/arm64/kvm/hyp/nvhe/switch.c:162:28: note: previous initialization is here [0 ... ESR_ELx_EC_MAX] = NULL, ^~~~ include/linux/stddef.h:8:14: note: expanded from macro 'NULL' #define NULL ((void *)0) ^~~~~~~~~~~ arch/arm64/kvm/hyp/nvhe/switch.c:168:27: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides] [ESR_ELx_EC_DABT_LOW] = kvm_hyp_handle_dabt_low, ^~~~~~~~~~~~~~~~~~~~~~~ arch/arm64/kvm/hyp/nvhe/switch.c:162:28: note: previous initialization is here [0 ... ESR_ELx_EC_MAX] = NULL, ^~~~ include/linux/stddef.h:8:14: note: expanded from macro 'NULL' #define NULL ((void *)0) ^~~~~~~~~~~ arch/arm64/kvm/hyp/nvhe/switch.c:169:22: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides] [ESR_ELx_EC_PAC] = kvm_hyp_handle_ptrauth, ^~~~~~~~~~~~~~~~~~~~~~ arch/arm64/kvm/hyp/nvhe/switch.c:162:28: note: previous initialization is here [0 ... ESR_ELx_EC_MAX] = NULL, ^~~~ include/linux/stddef.h:8:14: note: expanded from macro 'NULL' #define NULL ((void *)0) ^~~~~~~~~~~ arch/arm64/kvm/hyp/nvhe/switch.c:274:17: warning: no previous prototype for function 'hyp_panic' [-Wmissing-prototypes] void __noreturn hyp_panic(void) ^ arch/arm64/kvm/hyp/nvhe/switch.c:274:1: note: declare 'static' if the function is not intended to be used outside of this translation unit void __noreturn hyp_panic(void) ^ static arch/arm64/kvm/hyp/nvhe/switch.c:296:17: warning: no previous prototype for function 'kvm_unexpected_el2_exception' [-Wmissing-prototypes] asmlinkage void kvm_unexpected_el2_exception(void) ^ arch/arm64/kvm/hyp/nvhe/switch.c:296:12: note: declare 'static' if the function is not intended to be used outside of this translation unit asmlinkage void kvm_unexpected_el2_exception(void) ^ static 9 warnings generated. -- >> arch/arm64/kvm/hyp/vhe/switch.c:101:26: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides] [ESR_ELx_EC_CP15_32] = kvm_hyp_handle_cp15_32, ^~~~~~~~~~~~~~~~~~~~~~ arch/arm64/kvm/hyp/vhe/switch.c:100:28: note: previous initialization is here [0 ... ESR_ELx_EC_MAX] = NULL, ^~~~ include/linux/stddef.h:8:14: note: expanded from macro 'NULL' #define NULL ((void *)0) ^~~~~~~~~~~ arch/arm64/kvm/hyp/vhe/switch.c:102:24: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides] [ESR_ELx_EC_SYS64] = kvm_hyp_handle_sysreg, ^~~~~~~~~~~~~~~~~~~~~ arch/arm64/kvm/hyp/vhe/switch.c:100:28: note: previous initialization is here [0 ... ESR_ELx_EC_MAX] = NULL, ^~~~ include/linux/stddef.h:8:14: note: expanded from macro 'NULL' #define NULL ((void *)0) ^~~~~~~~~~~ arch/arm64/kvm/hyp/vhe/switch.c:103:22: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides] [ESR_ELx_EC_SVE] = kvm_hyp_handle_fpsimd, ^~~~~~~~~~~~~~~~~~~~~ arch/arm64/kvm/hyp/vhe/switch.c:100:28: note: previous initialization is here [0 ... ESR_ELx_EC_MAX] = NULL, ^~~~ include/linux/stddef.h:8:14: note: expanded from macro 'NULL' #define NULL ((void *)0) ^~~~~~~~~~~ arch/arm64/kvm/hyp/vhe/switch.c:104:27: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides] [ESR_ELx_EC_FP_ASIMD] = kvm_hyp_handle_fpsimd, ^~~~~~~~~~~~~~~~~~~~~ arch/arm64/kvm/hyp/vhe/switch.c:100:28: note: previous initialization is here [0 ... ESR_ELx_EC_MAX] = NULL, ^~~~ include/linux/stddef.h:8:14: note: expanded from macro 'NULL' #define NULL ((void *)0) ^~~~~~~~~~~ arch/arm64/kvm/hyp/vhe/switch.c:105:27: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides] [ESR_ELx_EC_IABT_LOW] = kvm_hyp_handle_iabt_low, ^~~~~~~~~~~~~~~~~~~~~~~ arch/arm64/kvm/hyp/vhe/switch.c:100:28: note: previous initialization is here [0 ... ESR_ELx_EC_MAX] = NULL, ^~~~ include/linux/stddef.h:8:14: note: expanded from macro 'NULL' #define NULL ((void *)0) ^~~~~~~~~~~ arch/arm64/kvm/hyp/vhe/switch.c:106:27: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides] [ESR_ELx_EC_DABT_LOW] = kvm_hyp_handle_dabt_low, ^~~~~~~~~~~~~~~~~~~~~~~ arch/arm64/kvm/hyp/vhe/switch.c:100:28: note: previous initialization is here [0 ... ESR_ELx_EC_MAX] = NULL, ^~~~ include/linux/stddef.h:8:14: note: expanded from macro 'NULL' #define NULL ((void *)0) ^~~~~~~~~~~ arch/arm64/kvm/hyp/vhe/switch.c:107:22: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides] [ESR_ELx_EC_PAC] = kvm_hyp_handle_ptrauth, ^~~~~~~~~~~~~~~~~~~~~~ arch/arm64/kvm/hyp/vhe/switch.c:100:28: note: previous initialization is here [0 ... ESR_ELx_EC_MAX] = NULL, ^~~~ include/linux/stddef.h:8:14: note: expanded from macro 'NULL' #define NULL ((void *)0) ^~~~~~~~~~~ arch/arm64/kvm/hyp/vhe/switch.c:222:17: warning: no previous prototype for function 'hyp_panic' [-Wmissing-prototypes] void __noreturn hyp_panic(void) ^ arch/arm64/kvm/hyp/vhe/switch.c:222:1: note: declare 'static' if the function is not intended to be used outside of this translation unit void __noreturn hyp_panic(void) ^ static arch/arm64/kvm/hyp/vhe/switch.c:232:17: warning: no previous prototype for function 'kvm_unexpected_el2_exception' [-Wmissing-prototypes] asmlinkage void kvm_unexpected_el2_exception(void) ^ arch/arm64/kvm/hyp/vhe/switch.c:232:12: note: declare 'static' if the function is not intended to be used outside of this translation unit asmlinkage void kvm_unexpected_el2_exception(void) ^ static 9 warnings generated. vim +163 arch/arm64/kvm/hyp/nvhe/switch.c 160 161 static const exit_handler_fn hyp_exit_handlers[] = { 162 [0 ... ESR_ELx_EC_MAX] = NULL, > 163 [ESR_ELx_EC_CP15_32] = kvm_hyp_handle_cp15_32, 164 [ESR_ELx_EC_SYS64] = kvm_hyp_handle_sysreg, 165 [ESR_ELx_EC_SVE] = kvm_hyp_handle_fpsimd, 166 [ESR_ELx_EC_FP_ASIMD] = kvm_hyp_handle_fpsimd, 167 [ESR_ELx_EC_IABT_LOW] = kvm_hyp_handle_iabt_low, 168 [ESR_ELx_EC_DABT_LOW] = kvm_hyp_handle_dabt_low, 169 [ESR_ELx_EC_PAC] = kvm_hyp_handle_ptrauth, 170 }; 171 --- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx
Attachment:
.config.gz
Description: application/gzip