* [android-common:android13-5.15 1/1] arch/arm64/kvm/hyp/include/nvhe/mem_protect.h:57:41: error: initializer element is not constant
@ 2025-12-24 3:04 kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2025-12-24 3:04 UTC (permalink / raw)
To: cros-kernel-buildreports; +Cc: oe-kbuild-all
Hi Quentin,
FYI, the error/warning still remains.
tree: https://android.googlesource.com/kernel/common android13-5.15
head: 48ed03a80ad49e3648c77d8c2c1ca10e706d6215
commit: f4c9f74c6bf846c2a77b25a8d93509e9ea00192a [1/1] ANDROID: BACKPORT: KVM: arm64: Zero protected guest pages on teardown
config: arm64-randconfig-001-20251224 (https://download.01.org/0day-ci/archive/20251224/202512241032.l0LWdACh-lkp@intel.com/config)
compiler: aarch64-linux-gcc (GCC) 7.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251224/202512241032.l0LWdACh-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/202512241032.l0LWdACh-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from arch/arm64/kvm/hyp/nvhe/switch.c:29:0:
>> arch/arm64/kvm/hyp/include/nvhe/mem_protect.h:57:41: error: initializer element is not constant
static const pkvm_id pkvm_host_poison = pkvm_hyp_id + 1;
^~~~~~~~~~~
arch/arm64/kvm/hyp/include/nvhe/mem_protect.h:57:22: warning: 'pkvm_host_poison' defined but not used [-Wunused-const-variable=]
static const pkvm_id pkvm_host_poison = pkvm_hyp_id + 1;
^~~~~~~~~~~~~~~~
arch/arm64/kvm/hyp/include/nvhe/mem_protect.h:55:22: warning: 'pkvm_host_id' defined but not used [-Wunused-const-variable=]
static const pkvm_id pkvm_host_id = 0;
^~~~~~~~~~~~
--
In file included from arch/arm64/kvm/hyp/include/nvhe/iommu.h:8:0,
from arch/arm64/kvm/hyp/nvhe/mem_protect.c:19:
>> arch/arm64/kvm/hyp/include/nvhe/mem_protect.h:57:41: error: initializer element is not constant
static const pkvm_id pkvm_host_poison = pkvm_hyp_id + 1;
^~~~~~~~~~~
arch/arm64/kvm/hyp/nvhe/mem_protect.c: In function '__pkvm_host_reclaim_page':
arch/arm64/kvm/hyp/nvhe/mem_protect.c:1804:2: error: case label does not reduce to an integer constant
case pkvm_host_id:
^~~~
arch/arm64/kvm/hyp/nvhe/mem_protect.c:1807:2: error: case label does not reduce to an integer constant
case pkvm_host_poison:
^~~~
vim +57 arch/arm64/kvm/hyp/include/nvhe/mem_protect.h
53
54 typedef u32 pkvm_id;
55 static const pkvm_id pkvm_host_id = 0;
56 static const pkvm_id pkvm_hyp_id = (1 << 16);
> 57 static const pkvm_id pkvm_host_poison = pkvm_hyp_id + 1;
58
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 2+ messages in thread
* [android-common:android13-5.15 1/1] arch/arm64/kvm/hyp/include/nvhe/mem_protect.h:57:41: error: initializer element is not constant
@ 2026-04-28 7:34 kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2026-04-28 7:34 UTC (permalink / raw)
To: cros-kernel-buildreports; +Cc: oe-kbuild-all
Hi Quentin,
FYI, the error/warning still remains.
tree: https://android.googlesource.com/kernel/common android13-5.15
head: f3cda89ca9993ed3ee84e88d1b50d227c00ca68d
commit: f4c9f74c6bf846c2a77b25a8d93509e9ea00192a [1/1] ANDROID: BACKPORT: KVM: arm64: Zero protected guest pages on teardown
config: arm64-randconfig-004-20260428 (https://download.01.org/0day-ci/archive/20260428/202604281547.R60B2cxV-lkp@intel.com/config)
compiler: aarch64-linux-gcc (GCC) 7.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260428/202604281547.R60B2cxV-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/202604281547.R60B2cxV-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from arch/arm64/kvm/hyp/include/nvhe/iommu.h:8:0,
from arch/arm64/kvm/hyp/nvhe/mem_protect.c:19:
>> arch/arm64/kvm/hyp/include/nvhe/mem_protect.h:57:41: error: initializer element is not constant
static const pkvm_id pkvm_host_poison = pkvm_hyp_id + 1;
^~~~~~~~~~~
arch/arm64/kvm/hyp/nvhe/mem_protect.c: In function '__pkvm_host_reclaim_page':
arch/arm64/kvm/hyp/nvhe/mem_protect.c:1804:2: error: case label does not reduce to an integer constant
case pkvm_host_id:
^~~~
arch/arm64/kvm/hyp/nvhe/mem_protect.c:1807:2: error: case label does not reduce to an integer constant
case pkvm_host_poison:
^~~~
--
In file included from arch/arm64/kvm/hyp/nvhe/pkvm.c:19:0:
>> arch/arm64/kvm/hyp/include/nvhe/mem_protect.h:57:41: error: initializer element is not constant
static const pkvm_id pkvm_host_poison = pkvm_hyp_id + 1;
^~~~~~~~~~~
arch/arm64/kvm/hyp/include/nvhe/mem_protect.h:57:22: warning: 'pkvm_host_poison' defined but not used [-Wunused-const-variable=]
static const pkvm_id pkvm_host_poison = pkvm_hyp_id + 1;
^~~~~~~~~~~~~~~~
arch/arm64/kvm/hyp/include/nvhe/mem_protect.h:55:22: warning: 'pkvm_host_id' defined but not used [-Wunused-const-variable=]
static const pkvm_id pkvm_host_id = 0;
^~~~~~~~~~~~
vim +57 arch/arm64/kvm/hyp/include/nvhe/mem_protect.h
53
54 typedef u32 pkvm_id;
55 static const pkvm_id pkvm_host_id = 0;
56 static const pkvm_id pkvm_hyp_id = (1 << 16);
> 57 static const pkvm_id pkvm_host_poison = pkvm_hyp_id + 1;
58
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-04-28 7:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-28 7:34 [android-common:android13-5.15 1/1] arch/arm64/kvm/hyp/include/nvhe/mem_protect.h:57:41: error: initializer element is not constant kernel test robot
-- strict thread matches above, loose matches on Subject: below --
2025-12-24 3:04 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.