From: kernel test robot <lkp@intel.com>
To: cros-kernel-buildreports@googlegroups.com
Cc: oe-kbuild-all@lists.linux.dev
Subject: [android-common:android13-5.15 1/1] arch/arm64/kvm/hyp/include/nvhe/mem_protect.h:57:41: error: initializer element is not constant
Date: Tue, 28 Apr 2026 15:34:24 +0800 [thread overview]
Message-ID: <202604281547.R60B2cxV-lkp@intel.com> (raw)
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
next reply other threads:[~2026-04-28 7:34 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-28 7:34 kernel test robot [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-12-24 3:04 [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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202604281547.R60B2cxV-lkp@intel.com \
--to=lkp@intel.com \
--cc=cros-kernel-buildreports@googlegroups.com \
--cc=oe-kbuild-all@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.