From: kernel test robot <lkp@intel.com>
To: cros-kernel-buildreports@googlegroups.com
Cc: oe-kbuild-all@lists.linux.dev
Subject: [android-common:android16-6.12-2026-03 2/2] arch/arm64/kvm/hyp/nvhe/psci-relay.c:28:40: warning: 'enum pkvm_psci_notification' declared inside parameter list will not be visible outside of this definition or declaration
Date: Tue, 10 Nov 2026 21:10:29 +0100 [thread overview]
Message-ID: <202611102152.VYIBQedM-lkp@intel.com> (raw)
Hi Quentin,
FYI, the error/warning still remains.
tree: https://android.googlesource.com/kernel/common android16-6.12-2026-03
head: ab1b4fc5ca8eed85eb9259015586db20a639526a
commit: 68d457650f79d4b9f8f23b82a8d0a06c4c74419d [2/2] ANDROID: KVM: arm64: Notify pKVM modules of PSCI events
config: arm64-randconfig-r2105-20261110 (https://download.01.org/0day-ci/archive/20261110/202611102152.VYIBQedM-lkp@intel.com/config)
compiler: aarch64-linux-gcc (GCC) 10.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261110/202611102152.VYIBQedM-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/202611102152.VYIBQedM-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> arch/arm64/kvm/hyp/nvhe/psci-relay.c:28:40: warning: 'enum pkvm_psci_notification' declared inside parameter list will not be visible outside of this definition or declaration
28 | static void (*pkvm_psci_notifier)(enum pkvm_psci_notification, struct user_pt_regs *);
| ^~~~~~~~~~~~~~~~~~~~~~
arch/arm64/kvm/hyp/nvhe/psci-relay.c:29:35: warning: 'enum pkvm_psci_notification' declared inside parameter list will not be visible outside of this definition or declaration
29 | static void pkvm_psci_notify(enum pkvm_psci_notification notif, struct kvm_cpu_context *host_ctxt)
| ^~~~~~~~~~~~~~~~~~~~~~
arch/arm64/kvm/hyp/nvhe/psci-relay.c:29:58: error: parameter 1 ('notif') has incomplete type
29 | static void pkvm_psci_notify(enum pkvm_psci_notification notif, struct kvm_cpu_context *host_ctxt)
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~
arch/arm64/kvm/hyp/nvhe/psci-relay.c:29:13: error: function declaration isn't a prototype [-Werror=strict-prototypes]
29 | static void pkvm_psci_notify(enum pkvm_psci_notification notif, struct kvm_cpu_context *host_ctxt)
| ^~~~~~~~~~~~~~~~
arch/arm64/kvm/hyp/nvhe/psci-relay.c: In function 'pkvm_psci_notify':
arch/arm64/kvm/hyp/nvhe/psci-relay.c:32:22: error: type of formal parameter 1 is incomplete
32 | pkvm_psci_notifier(notif, &host_ctxt->regs);
| ^~~~~
arch/arm64/kvm/hyp/nvhe/psci-relay.c: At top level:
arch/arm64/kvm/hyp/nvhe/psci-relay.c:35:51: warning: 'enum pkvm_psci_notification' declared inside parameter list will not be visible outside of this definition or declaration
35 | int __pkvm_register_psci_notifier(void (*cb)(enum pkvm_psci_notification, struct user_pt_regs *))
| ^~~~~~~~~~~~~~~~~~~~~~
arch/arm64/kvm/hyp/nvhe/psci-relay.c:35:5: warning: no previous prototype for '__pkvm_register_psci_notifier' [-Wmissing-prototypes]
35 | int __pkvm_register_psci_notifier(void (*cb)(enum pkvm_psci_notification, struct user_pt_regs *))
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
arch/arm64/kvm/hyp/nvhe/psci-relay.c: In function 'psci_cpu_suspend':
arch/arm64/kvm/hyp/nvhe/psci-relay.c:191:19: error: 'PKVM_PSCI_CPU_SUSPEND' undeclared (first use in this function); did you mean 'KVM_PSCI_FN_CPU_SUSPEND'?
191 | pkvm_psci_notify(PKVM_PSCI_CPU_SUSPEND, host_ctxt);
| ^~~~~~~~~~~~~~~~~~~~~
| KVM_PSCI_FN_CPU_SUSPEND
arch/arm64/kvm/hyp/nvhe/psci-relay.c:191:19: note: each undeclared identifier is reported only once for each function it appears in
arch/arm64/kvm/hyp/nvhe/psci-relay.c: In function 'psci_system_suspend':
arch/arm64/kvm/hyp/nvhe/psci-relay.c:222:19: error: 'PKVM_PSCI_SYSTEM_SUSPEND' undeclared (first use in this function); did you mean 'KVM_CAP_ARM_SYSTEM_SUSPEND'?
222 | pkvm_psci_notify(PKVM_PSCI_SYSTEM_SUSPEND, host_ctxt);
| ^~~~~~~~~~~~~~~~~~~~~~~~
| KVM_CAP_ARM_SYSTEM_SUSPEND
arch/arm64/kvm/hyp/nvhe/psci-relay.c: In function '__kvm_host_psci_cpu_entry':
arch/arm64/kvm/hyp/nvhe/psci-relay.c:249:19: error: 'PKVM_PSCI_CPU_ENTRY' undeclared (first use in this function)
249 | pkvm_psci_notify(PKVM_PSCI_CPU_ENTRY, host_ctxt);
| ^~~~~~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
vim +28 arch/arm64/kvm/hyp/nvhe/psci-relay.c
27
> 28 static void (*pkvm_psci_notifier)(enum pkvm_psci_notification, struct user_pt_regs *);
29 static void pkvm_psci_notify(enum pkvm_psci_notification notif, struct kvm_cpu_context *host_ctxt)
30 {
31 if (smp_load_acquire(&pkvm_psci_notifier))
32 pkvm_psci_notifier(notif, &host_ctxt->regs);
33 }
34
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2026-11-10 20:10 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=202611102152.VYIBQedM-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.