* [android-common:android16-6.12 4/4] arch/arm64/kvm/hyp/nvhe/hyp-main.c:56:6: warning: no previous prototype for function '__pkvm_unmask_serror'
@ 2025-08-14 19:43 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-08-14 19:43 UTC (permalink / raw)
To: cros-kernel-buildreports; +Cc: oe-kbuild-all
tree: https://android.googlesource.com/kernel/common android16-6.12
head: 125206b4d7d6898a8a5d0c088a5ba75114266b81
commit: a08dde8a50c098a8002175044a68f63a9de16a53 [4/4] ANDROID: KVM: arm64: Add pKVM module register_unmask_serror
config: arm64-randconfig-2002-20250814 (https://download.01.org/0day-ci/archive/20250814/202508142137.nFPBCY1e-lkp@intel.com/config)
compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project 7d886fab74d4037d654d02bed24dd97c0ba863d6)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250814/202508142137.nFPBCY1e-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202508142137.nFPBCY1e-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> arch/arm64/kvm/hyp/nvhe/hyp-main.c:56:6: warning: no previous prototype for function '__pkvm_unmask_serror' [-Wmissing-prototypes]
56 | void __pkvm_unmask_serror(void)
| ^
arch/arm64/kvm/hyp/nvhe/hyp-main.c:56:1: note: declare 'static' if the function is not intended to be used outside of this translation unit
56 | void __pkvm_unmask_serror(void)
| ^
| static
arch/arm64/kvm/hyp/nvhe/hyp-main.c:455:22: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
455 | [ESR_ELx_EC_WFx] = handle_pvm_entry_wfx,
| ^~~~~~~~~~~~~~~~~~~~
arch/arm64/kvm/hyp/nvhe/hyp-main.c:454:28: note: previous initialization is here
454 | [0 ... ESR_ELx_EC_MAX] = NULL,
| ^~~~
include/linux/stddef.h:8:14: note: expanded from macro 'NULL'
8 | #define NULL ((void *)0)
| ^~~~~~~~~~~
arch/arm64/kvm/hyp/nvhe/hyp-main.c:456:24: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
456 | [ESR_ELx_EC_HVC64] = handle_pvm_entry_hvc64,
| ^~~~~~~~~~~~~~~~~~~~~~
arch/arm64/kvm/hyp/nvhe/hyp-main.c:454:28: note: previous initialization is here
454 | [0 ... ESR_ELx_EC_MAX] = NULL,
| ^~~~
include/linux/stddef.h:8:14: note: expanded from macro 'NULL'
8 | #define NULL ((void *)0)
| ^~~~~~~~~~~
arch/arm64/kvm/hyp/nvhe/hyp-main.c:457:24: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
457 | [ESR_ELx_EC_SYS64] = handle_pvm_entry_sys64,
| ^~~~~~~~~~~~~~~~~~~~~~
arch/arm64/kvm/hyp/nvhe/hyp-main.c:454:28: note: previous initialization is here
454 | [0 ... ESR_ELx_EC_MAX] = NULL,
| ^~~~
include/linux/stddef.h:8:14: note: expanded from macro 'NULL'
8 | #define NULL ((void *)0)
| ^~~~~~~~~~~
arch/arm64/kvm/hyp/nvhe/hyp-main.c:458:27: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
458 | [ESR_ELx_EC_IABT_LOW] = handle_pvm_entry_iabt,
| ^~~~~~~~~~~~~~~~~~~~~
arch/arm64/kvm/hyp/nvhe/hyp-main.c:454:28: note: previous initialization is here
454 | [0 ... ESR_ELx_EC_MAX] = NULL,
| ^~~~
include/linux/stddef.h:8:14: note: expanded from macro 'NULL'
8 | #define NULL ((void *)0)
| ^~~~~~~~~~~
arch/arm64/kvm/hyp/nvhe/hyp-main.c:459:27: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
459 | [ESR_ELx_EC_DABT_LOW] = handle_pvm_entry_dabt,
| ^~~~~~~~~~~~~~~~~~~~~
arch/arm64/kvm/hyp/nvhe/hyp-main.c:454:28: note: previous initialization is here
454 | [0 ... ESR_ELx_EC_MAX] = NULL,
| ^~~~
include/linux/stddef.h:8:14: note: expanded from macro 'NULL'
8 | #define NULL ((void *)0)
| ^~~~~~~~~~~
arch/arm64/kvm/hyp/nvhe/hyp-main.c:464:22: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
464 | [ESR_ELx_EC_WFx] = handle_pvm_exit_wfx,
| ^~~~~~~~~~~~~~~~~~~
arch/arm64/kvm/hyp/nvhe/hyp-main.c:463:28: note: previous initialization is here
463 | [0 ... ESR_ELx_EC_MAX] = NULL,
| ^~~~
include/linux/stddef.h:8:14: note: expanded from macro 'NULL'
8 | #define NULL ((void *)0)
| ^~~~~~~~~~~
arch/arm64/kvm/hyp/nvhe/hyp-main.c:465:24: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
465 | [ESR_ELx_EC_HVC64] = handle_pvm_exit_hvc64,
| ^~~~~~~~~~~~~~~~~~~~~
arch/arm64/kvm/hyp/nvhe/hyp-main.c:463:28: note: previous initialization is here
463 | [0 ... ESR_ELx_EC_MAX] = NULL,
| ^~~~
include/linux/stddef.h:8:14: note: expanded from macro 'NULL'
8 | #define NULL ((void *)0)
| ^~~~~~~~~~~
arch/arm64/kvm/hyp/nvhe/hyp-main.c:466:24: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
466 | [ESR_ELx_EC_SYS64] = handle_pvm_exit_sys64,
| ^~~~~~~~~~~~~~~~~~~~~
arch/arm64/kvm/hyp/nvhe/hyp-main.c:463:28: note: previous initialization is here
463 | [0 ... ESR_ELx_EC_MAX] = NULL,
| ^~~~
include/linux/stddef.h:8:14: note: expanded from macro 'NULL'
8 | #define NULL ((void *)0)
| ^~~~~~~~~~~
arch/arm64/kvm/hyp/nvhe/hyp-main.c:467:27: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
467 | [ESR_ELx_EC_IABT_LOW] = handle_pvm_exit_iabt,
| ^~~~~~~~~~~~~~~~~~~~
arch/arm64/kvm/hyp/nvhe/hyp-main.c:463:28: note: previous initialization is here
463 | [0 ... ESR_ELx_EC_MAX] = NULL,
| ^~~~
include/linux/stddef.h:8:14: note: expanded from macro 'NULL'
8 | #define NULL ((void *)0)
| ^~~~~~~~~~~
arch/arm64/kvm/hyp/nvhe/hyp-main.c:468:27: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
468 | [ESR_ELx_EC_DABT_LOW] = handle_pvm_exit_dabt,
| ^~~~~~~~~~~~~~~~~~~~
arch/arm64/kvm/hyp/nvhe/hyp-main.c:463:28: note: previous initialization is here
463 | [0 ... ESR_ELx_EC_MAX] = NULL,
| ^~~~
include/linux/stddef.h:8:14: note: expanded from macro 'NULL'
8 | #define NULL ((void *)0)
| ^~~~~~~~~~~
arch/arm64/kvm/hyp/nvhe/hyp-main.c:477:27: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
477 | [ESR_ELx_EC_IABT_LOW] = handle_vm_exit_abt,
| ^~~~~~~~~~~~~~~~~~
arch/arm64/kvm/hyp/nvhe/hyp-main.c:476:28: note: previous initialization is here
vim +/__pkvm_unmask_serror +56 arch/arm64/kvm/hyp/nvhe/hyp-main.c
55
> 56 void __pkvm_unmask_serror(void)
57 {
58 u64 hcr = read_sysreg(HCR_EL2);
59
60 if (!unmask_serror || !unmask_serror())
61 return;
62
63 write_sysreg(hcr | HCR_AMO, HCR_EL2);
64 asm volatile("msr daifclr, #4");
65 isb();
66 }
67
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-08-14 19:44 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-14 19:43 [android-common:android16-6.12 4/4] arch/arm64/kvm/hyp/nvhe/hyp-main.c:56:6: warning: no previous prototype for function '__pkvm_unmask_serror' 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.