From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=192.198.163.10 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796295841; b=TT+YskXncsCkrS/421RsK7KPsbZrTc9fLXkti21y8qEZPqBB+0KtkWjrOf9JSgyIzUUp 7fHzqOI5s87JhRbBq/9CMQfbUJuryCnw8pK5EByX4jmHp31Bk/HaW2T3o7VCr3GrirXEc omv55LYmwuDK8EjS76FKn9w9UfQnlxWLPBXeuKYf6+RsgNpBoCdUMoSUebxGfghw2Wvn+ qTYmlr6ZsN8SJ4ycZGU8jgvWCtVvY2wsu3XRM2/L5g0brjReaQ7Wza8nLUllklW1x9quL 2/aLtCE4IVtH70jWHPe9iDwX3iq4p3TTjDGTrvJc0FFbbio6ZP6lWydz0EsyIy5KKDg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796295841; h=DMARC-Filter:DKIM-Signature:X-CSE-ConnectionGUID:X-CSE-MsgGUID: X-IronPort-AV:X-IronPort-AV:Received:X-CSE-ConnectionGUID: X-CSE-MsgGUID:X-ExtLoop1:X-IronPort-AV:Received:Received:Date:From:To: Cc:Subject:Message-ID:User-Agent; bh=vMzWxVqeceGi+1dpYWzqFd3AqBdrosxMzGhr9pz97fA=; b=oH7KFZ1gEBQdtip4PAuYpqimmbQruGhZO5k6QAaMR4LS7i2w/OuDdOcoXz5JnGKV9UFU o6XQin97ulOAcQN8QXExXVx1hSmoZV1o7vqGDIFJrW7YKymAfo8EHJr/JIpiGmYwgv/kL xs1YVYKFfERa+9oCFI1btUI6mFwu4zGO+gCTCv/YoARCVEM7JAjQfauvIrxWfmAUod6MA +cV2wonxln1EP8IU3rxnY4Ti13+c6anWHR1rXqNqpbGUL6Jz3/dVQ18OvPTrN3x+dZbSj Tg8DhMsurpcbML+7PXhfp0JtOpsctQk4FSibn9kHr2jIFW5/4C9BUjXIDLYEhWA6OdA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=mruXVI4p; arc=none smtp.remote-ip=192.198.163.10 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.10]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DB117606A322 for ; Thu, 3 Dec 2026 11:04:00 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org DB117606A322 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=mruXVI4p DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1796295841; x=1827831841; h=date:from:to:cc:subject:message-id; bh=vMzWxVqeceGi+1dpYWzqFd3AqBdrosxMzGhr9pz97fA=; b=mruXVI4pTN4hLJBfkd1noLfk0gRR9lgeXc1a+flIRxWNtEQfkBUXk6s+ okBuPNZdxeps1P3QIPtF4Ks0Pftr6+Ifsl7OOO+9r816cxZ407XMXhGTw Qqwvnwvq1hU78rqAG53s/DdZiZIurXns/b1NNhlgZ+72kBvHKLtu0DXlw lgGoE9PpSsBsMGfJa3rBgyDQBpzew+ehAigcmhXudp/3zoDsdV54TzXOI 1rl0Rv8q9HaDpV8Vc8py/jZ3cI/4x+xUOGBfULP6MHhVIGaLuQMu7u57f 3uKpvtofU7r8CzfpBrS2rvOYAN9N4yEn0uOVatBngced1mPpnu8ijzi67 g==; X-CSE-ConnectionGUID: 2po9gNg1Sg+QvpoDTkVKSw== X-CSE-MsgGUID: UmTmoXYFQ92APrmuffOcoA== X-IronPort-AV: E=McAfee;i="6800,10657,11984"; a="5139478" X-IronPort-AV: E=Sophos;i="6.27,248,1787036400"; d="scan'208";a="5139478" Received: from orviesa007.jf.intel.com ([10.64.159.147]) by fmvoesa104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Dec 2026 03:04:00 -0800 X-CSE-ConnectionGUID: +foFsYssQtaepYhpn5mbrg== X-CSE-MsgGUID: 7C9nCWX6SAe4i/dsMd+SgQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,248,1787036400"; d="scan'208";a="13821661" Received: from igk-lkp-server01.igk.intel.com (HELO 146cf1e082f1) ([10.211.93.152]) by orviesa007.jf.intel.com with ESMTP; 03 Dec 2026 03:03:59 -0800 Received: from kbuild by 146cf1e082f1 with local (Exim 4.98.2) (envelope-from ) id 1xZ4bU-000000003hG-3H1k; Thu, 03 Dec 2026 11:03:56 +0000 Date: Thu, 03 Dec 2026 12:03:10 +0100 From: kernel test robot To: cros-kernel-buildreports@googlegroups.com Cc: oe-kbuild-all@lists.linux.dev Subject: [android-common:android18-7.3 10/10] arch/arm64/kvm/hyp/include/nvhe/modules.h:45:16: error: 'GUEST_SMC_NOT_HANDLED' undeclared Message-ID: <20261203115608.MyNBbMX7-lkp@intel.com> User-Agent: s-nail v14.9.25 X-Mailing-List: oe-kbuild-all@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list tree: https://android.googlesource.com/kernel/common android18-7.3 head: 6a439ac1d974b20afc48599d2d13f5904d309997 commit: 000dd0273ddf672cf2abc21884219238b438a155 [10/10] BACKPORT: ANDROID: KVM: arm64: Allow memcache topup from guest SMC handler config: arm64-randconfig-2001-20261203 (https://download.01.org/0day-ci/archive/20261203/20261203115608.MyNBbMX7-lkp@intel.com/config) compiler: aarch64-linux-gcc (GCC) 13.5.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261203/20261203115608.MyNBbMX7-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 | Closes: https://lore.kernel.org/oe-kbuild-all/20261203115608.MyNBbMX7-lkp@intel.com/ All errors (new ones prefixed by >>): In file included from arch/arm64/kvm/hyp/nvhe/mem_protect.c:26: arch/arm64/kvm/hyp/include/nvhe/modules.h:39:6: warning: no previous prototype for 'module_handle_host_perm_fault' [-Wmissing-prototypes] 39 | bool module_handle_host_perm_fault(struct user_pt_regs *regs, u64 esr, u64 addr) { return false; } | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ arch/arm64/kvm/hyp/include/nvhe/modules.h:40:6: warning: no previous prototype for 'module_handle_host_smc' [-Wmissing-prototypes] 40 | bool module_handle_host_smc(struct user_pt_regs *regs) { return false; } | ^~~~~~~~~~~~~~~~~~~~~~ arch/arm64/kvm/hyp/include/nvhe/modules.h:42:1: error: return type is an incomplete type 42 | module_handle_guest_smc(struct arm_smccc_1_2_regs *regs, struct arm_smccc_1_2_regs *res, | ^~~~~~~~~~~~~~~~~~~~~~~ arch/arm64/kvm/hyp/include/nvhe/modules.h:42:1: warning: no previous prototype for 'module_handle_guest_smc' [-Wmissing-prototypes] arch/arm64/kvm/hyp/include/nvhe/modules.h: In function 'module_handle_guest_smc': >> arch/arm64/kvm/hyp/include/nvhe/modules.h:45:16: error: 'GUEST_SMC_NOT_HANDLED' undeclared (first use in this function) 45 | return GUEST_SMC_NOT_HANDLED; | ^~~~~~~~~~~~~~~~~~~~~ arch/arm64/kvm/hyp/include/nvhe/modules.h:45:16: note: each undeclared identifier is reported only once for each function it appears in arch/arm64/kvm/hyp/include/nvhe/modules.h:45:16: warning: 'return' with a value, in function returning void [-Wreturn-type] arch/arm64/kvm/hyp/include/nvhe/modules.h:42:1: note: declared here 42 | module_handle_guest_smc(struct arm_smccc_1_2_regs *regs, struct arm_smccc_1_2_regs *res, | ^~~~~~~~~~~~~~~~~~~~~~~ -- In file included from arch/arm64/kvm/hyp/nvhe/hyp-main.c:27: arch/arm64/kvm/hyp/include/nvhe/modules.h:39:6: warning: no previous prototype for 'module_handle_host_perm_fault' [-Wmissing-prototypes] 39 | bool module_handle_host_perm_fault(struct user_pt_regs *regs, u64 esr, u64 addr) { return false; } | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ arch/arm64/kvm/hyp/include/nvhe/modules.h:40:6: warning: no previous prototype for 'module_handle_host_smc' [-Wmissing-prototypes] 40 | bool module_handle_host_smc(struct user_pt_regs *regs) { return false; } | ^~~~~~~~~~~~~~~~~~~~~~ arch/arm64/kvm/hyp/include/nvhe/modules.h:42:1: error: return type is an incomplete type 42 | module_handle_guest_smc(struct arm_smccc_1_2_regs *regs, struct arm_smccc_1_2_regs *res, | ^~~~~~~~~~~~~~~~~~~~~~~ arch/arm64/kvm/hyp/include/nvhe/modules.h:42:1: warning: no previous prototype for 'module_handle_guest_smc' [-Wmissing-prototypes] arch/arm64/kvm/hyp/include/nvhe/modules.h: In function 'module_handle_guest_smc': >> arch/arm64/kvm/hyp/include/nvhe/modules.h:45:16: error: 'GUEST_SMC_NOT_HANDLED' undeclared (first use in this function) 45 | return GUEST_SMC_NOT_HANDLED; | ^~~~~~~~~~~~~~~~~~~~~ arch/arm64/kvm/hyp/include/nvhe/modules.h:45:16: note: each undeclared identifier is reported only once for each function it appears in arch/arm64/kvm/hyp/include/nvhe/modules.h:45:16: warning: 'return' with a value, in function returning void [-Wreturn-type] arch/arm64/kvm/hyp/include/nvhe/modules.h:42:1: note: declared here 42 | module_handle_guest_smc(struct arm_smccc_1_2_regs *regs, struct arm_smccc_1_2_regs *res, | ^~~~~~~~~~~~~~~~~~~~~~~ arch/arm64/kvm/hyp/nvhe/hyp-main.c: At top level: arch/arm64/kvm/hyp/nvhe/hyp-main.c:545:43: warning: initialized field overwritten [-Woverride-init] 545 | [ESR_ELx_EC_WFx] = handle_pvm_entry_wfx, | ^~~~~~~~~~~~~~~~~~~~ arch/arm64/kvm/hyp/nvhe/hyp-main.c:545:43: note: (near initialization for 'entry_hyp_pvm_handlers[1]') arch/arm64/kvm/hyp/nvhe/hyp-main.c:546:43: warning: initialized field overwritten [-Woverride-init] 546 | [ESR_ELx_EC_SYS64] = handle_pvm_entry_sys64, | ^~~~~~~~~~~~~~~~~~~~~~ arch/arm64/kvm/hyp/nvhe/hyp-main.c:546:43: note: (near initialization for 'entry_hyp_pvm_handlers[24]') arch/arm64/kvm/hyp/nvhe/hyp-main.c:547:43: warning: initialized field overwritten [-Woverride-init] 547 | [ESR_ELx_EC_IABT_LOW] = handle_pvm_entry_iabt, | ^~~~~~~~~~~~~~~~~~~~~ arch/arm64/kvm/hyp/nvhe/hyp-main.c:547:43: note: (near initialization for 'entry_hyp_pvm_handlers[32]') arch/arm64/kvm/hyp/nvhe/hyp-main.c:548:43: warning: initialized field overwritten [-Woverride-init] 548 | [ESR_ELx_EC_DABT_LOW] = handle_pvm_entry_dabt, | ^~~~~~~~~~~~~~~~~~~~~ arch/arm64/kvm/hyp/nvhe/hyp-main.c:548:43: note: (near initialization for 'entry_hyp_pvm_handlers[36]') arch/arm64/kvm/hyp/nvhe/hyp-main.c:549:43: warning: initialized field overwritten [-Woverride-init] 549 | [ESR_ELx_EC_HVC64] = handle_pvm_entry_hvc64, | ^~~~~~~~~~~~~~~~~~~~~~ arch/arm64/kvm/hyp/nvhe/hyp-main.c:549:43: note: (near initialization for 'entry_hyp_pvm_handlers[22]') arch/arm64/kvm/hyp/nvhe/hyp-main.c:554:43: warning: initialized field overwritten [-Woverride-init] 554 | [ESR_ELx_EC_WFx] = handle_pvm_exit_wfx, | ^~~~~~~~~~~~~~~~~~~ arch/arm64/kvm/hyp/nvhe/hyp-main.c:554:43: note: (near initialization for 'exit_hyp_pvm_handlers[1]') arch/arm64/kvm/hyp/nvhe/hyp-main.c:555:43: warning: initialized field overwritten [-Woverride-init] 555 | [ESR_ELx_EC_SYS64] = handle_pvm_exit_sys64, | ^~~~~~~~~~~~~~~~~~~~~ arch/arm64/kvm/hyp/nvhe/hyp-main.c:555:43: note: (near initialization for 'exit_hyp_pvm_handlers[24]') arch/arm64/kvm/hyp/nvhe/hyp-main.c:556:43: warning: initialized field overwritten [-Woverride-init] 556 | [ESR_ELx_EC_IABT_LOW] = handle_pvm_exit_iabt, | ^~~~~~~~~~~~~~~~~~~~ arch/arm64/kvm/hyp/nvhe/hyp-main.c:556:43: note: (near initialization for 'exit_hyp_pvm_handlers[32]') arch/arm64/kvm/hyp/nvhe/hyp-main.c:557:43: warning: initialized field overwritten [-Woverride-init] 557 | [ESR_ELx_EC_DABT_LOW] = handle_pvm_exit_dabt, | ^~~~~~~~~~~~~~~~~~~~ arch/arm64/kvm/hyp/nvhe/hyp-main.c:557:43: note: (near initialization for 'exit_hyp_pvm_handlers[36]') arch/arm64/kvm/hyp/nvhe/hyp-main.c:558:43: warning: initialized field overwritten [-Woverride-init] 558 | [ESR_ELx_EC_HVC64] = handle_pvm_exit_hvc64, | ^~~~~~~~~~~~~~~~~~~~~ arch/arm64/kvm/hyp/nvhe/hyp-main.c:558:43: note: (near initialization for 'exit_hyp_pvm_handlers[22]') arch/arm64/kvm/hyp/nvhe/hyp-main.c: In function 'handle_host_hcall': arch/arm64/kvm/hyp/nvhe/hyp-main.c:1858:39: error: passing argument 1 of 'handle_host_dynamic_hcall' from incompatible pointer type [-Werror=incompatible-pointer-types] 1858 | if (handle_host_dynamic_hcall(&host_ctxt->regs, id) == HCALL_HANDLED) | ^~~~~~~~~~~~~~~~ | | | struct user_pt_regs * arch/arm64/kvm/hyp/include/nvhe/modules.h:34:51: note: expected 'struct kvm_cpu_context *' but argument is of type 'struct user_pt_regs *' 34 | handle_host_dynamic_hcall(struct kvm_cpu_context *host_ctxt, int id) | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~ cc1: some warnings being treated as errors -- In file included from arch/arm64/kvm/hyp/nvhe/pkvm.c:24: arch/arm64/kvm/hyp/include/nvhe/modules.h:39:6: warning: no previous prototype for 'module_handle_host_perm_fault' [-Wmissing-prototypes] 39 | bool module_handle_host_perm_fault(struct user_pt_regs *regs, u64 esr, u64 addr) { return false; } | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ arch/arm64/kvm/hyp/include/nvhe/modules.h:40:6: warning: no previous prototype for 'module_handle_host_smc' [-Wmissing-prototypes] 40 | bool module_handle_host_smc(struct user_pt_regs *regs) { return false; } | ^~~~~~~~~~~~~~~~~~~~~~ arch/arm64/kvm/hyp/include/nvhe/modules.h:42:1: error: return type is an incomplete type 42 | module_handle_guest_smc(struct arm_smccc_1_2_regs *regs, struct arm_smccc_1_2_regs *res, | ^~~~~~~~~~~~~~~~~~~~~~~ arch/arm64/kvm/hyp/include/nvhe/modules.h:42:1: warning: no previous prototype for 'module_handle_guest_smc' [-Wmissing-prototypes] arch/arm64/kvm/hyp/include/nvhe/modules.h: In function 'module_handle_guest_smc': >> arch/arm64/kvm/hyp/include/nvhe/modules.h:45:16: error: 'GUEST_SMC_NOT_HANDLED' undeclared (first use in this function) 45 | return GUEST_SMC_NOT_HANDLED; | ^~~~~~~~~~~~~~~~~~~~~ arch/arm64/kvm/hyp/include/nvhe/modules.h:45:16: note: each undeclared identifier is reported only once for each function it appears in arch/arm64/kvm/hyp/include/nvhe/modules.h:45:16: warning: 'return' with a value, in function returning void [-Wreturn-type] arch/arm64/kvm/hyp/include/nvhe/modules.h:42:1: note: declared here 42 | module_handle_guest_smc(struct arm_smccc_1_2_regs *regs, struct arm_smccc_1_2_regs *res, | ^~~~~~~~~~~~~~~~~~~~~~~ arch/arm64/kvm/hyp/nvhe/pkvm.c: In function 'module_handle_guest_trng_rng': arch/arm64/kvm/hyp/nvhe/pkvm.c:1972:15: error: implicit declaration of function 'module_get_guest_trng_rng'; did you mean 'module_handle_guest_trng_rng'? [-Werror=implicit-function-declaration] 1972 | ret = module_get_guest_trng_rng(entropy, nbits); | ^~~~~~~~~~~~~~~~~~~~~~~~~ | module_handle_guest_trng_rng arch/arm64/kvm/hyp/nvhe/pkvm.c: In function 'module_handle_guest_trng': arch/arm64/kvm/hyp/nvhe/pkvm.c:1991:16: error: implicit declaration of function 'module_get_guest_trng_uuid'; did you mean 'module_handle_guest_trng_rng'? [-Werror=implicit-function-declaration] 1991 | uuid = module_get_guest_trng_uuid(); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ | module_handle_guest_trng_rng arch/arm64/kvm/hyp/nvhe/pkvm.c:1991:14: warning: assignment to 'const uuid_t *' from 'int' makes pointer from integer without a cast [-Wint-conversion] 1991 | uuid = module_get_guest_trng_uuid(); | ^ arch/arm64/kvm/hyp/nvhe/pkvm.c: In function 'kvm_handle_pvm_smc64': >> arch/arm64/kvm/hyp/nvhe/pkvm.c:2057:17: error: switch quantity not an integer 2057 | switch (module_handle_guest_smc(®s, &res, vm->kvm.arch.pkvm.handle)) { | ^~~~~~~~~~~~~~~~~~~~~~~ arch/arm64/kvm/hyp/nvhe/pkvm.c:2058:14: error: 'GUEST_SMC_HANDLED' undeclared (first use in this function) 2058 | case GUEST_SMC_HANDLED: | ^~~~~~~~~~~~~~~~~ arch/arm64/kvm/hyp/nvhe/pkvm.c:2061:14: error: 'GUEST_SMC_NOT_HANDLED' undeclared (first use in this function) 2061 | case GUEST_SMC_NOT_HANDLED: | ^~~~~~~~~~~~~~~~~~~~~ arch/arm64/kvm/hyp/nvhe/pkvm.c:2064:14: error: 'GUEST_SMC_NEED_TOPUP' undeclared (first use in this function) 2064 | case GUEST_SMC_NEED_TOPUP: | ^~~~~~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors -- In file included from arch/arm64/kvm/hyp/nvhe/psci-relay.c:19: arch/arm64/kvm/hyp/include/nvhe/modules.h:39:6: warning: no previous prototype for 'module_handle_host_perm_fault' [-Wmissing-prototypes] 39 | bool module_handle_host_perm_fault(struct user_pt_regs *regs, u64 esr, u64 addr) { return false; } | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ arch/arm64/kvm/hyp/include/nvhe/modules.h:40:6: warning: no previous prototype for 'module_handle_host_smc' [-Wmissing-prototypes] 40 | bool module_handle_host_smc(struct user_pt_regs *regs) { return false; } | ^~~~~~~~~~~~~~~~~~~~~~ arch/arm64/kvm/hyp/include/nvhe/modules.h:42:1: error: return type is an incomplete type 42 | module_handle_guest_smc(struct arm_smccc_1_2_regs *regs, struct arm_smccc_1_2_regs *res, | ^~~~~~~~~~~~~~~~~~~~~~~ arch/arm64/kvm/hyp/include/nvhe/modules.h:42:1: warning: no previous prototype for 'module_handle_guest_smc' [-Wmissing-prototypes] arch/arm64/kvm/hyp/include/nvhe/modules.h: In function 'module_handle_guest_smc': >> arch/arm64/kvm/hyp/include/nvhe/modules.h:45:16: error: 'GUEST_SMC_NOT_HANDLED' undeclared (first use in this function) 45 | return GUEST_SMC_NOT_HANDLED; | ^~~~~~~~~~~~~~~~~~~~~ arch/arm64/kvm/hyp/include/nvhe/modules.h:45:16: note: each undeclared identifier is reported only once for each function it appears in arch/arm64/kvm/hyp/include/nvhe/modules.h:45:16: warning: 'return' with a value, in function returning void [-Wreturn-type] arch/arm64/kvm/hyp/include/nvhe/modules.h:42:1: note: declared here 42 | module_handle_guest_smc(struct arm_smccc_1_2_regs *regs, struct arm_smccc_1_2_regs *res, | ^~~~~~~~~~~~~~~~~~~~~~~ arch/arm64/kvm/hyp/nvhe/psci-relay.c: At top level: arch/arm64/kvm/hyp/nvhe/psci-relay.c:32:58: error: parameter 1 ('notif') has incomplete type 32 | static void pkvm_psci_notify(enum pkvm_psci_notification notif, struct kvm_cpu_context *host_ctxt) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~ arch/arm64/kvm/hyp/nvhe/psci-relay.c:32:13: error: function declaration isn't a prototype [-Werror=strict-prototypes] 32 | 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:35:36: error: type of formal parameter 1 is incomplete 35 | pkvm_psci_notifier(notif, &host_ctxt->regs); | ^~~~~ arch/arm64/kvm/hyp/nvhe/psci-relay.c: In function 'psci_cpu_suspend': arch/arm64/kvm/hyp/nvhe/psci-relay.c:193:26: error: 'PKVM_PSCI_CPU_SUSPEND' undeclared (first use in this function); did you mean 'KVM_PSCI_FN_CPU_SUSPEND'? 193 | pkvm_psci_notify(PKVM_PSCI_CPU_SUSPEND, host_ctxt); | ^~~~~~~~~~~~~~~~~~~~~ | KVM_PSCI_FN_CPU_SUSPEND arch/arm64/kvm/hyp/nvhe/psci-relay.c: In function 'psci_system_suspend': arch/arm64/kvm/hyp/nvhe/psci-relay.c:222:26: error: 'PKVM_PSCI_SYSTEM_SUSPEND' undeclared (first use in this function); did you mean 'KVM_PSCI_FN_CPU_SUSPEND'? 222 | pkvm_psci_notify(PKVM_PSCI_SYSTEM_SUSPEND, host_ctxt); | ^~~~~~~~~~~~~~~~~~~~~~~~ | KVM_PSCI_FN_CPU_SUSPEND arch/arm64/kvm/hyp/nvhe/psci-relay.c: In function '__kvm_host_psci_cpu_entry': arch/arm64/kvm/hyp/nvhe/psci-relay.c:292:26: error: 'PKVM_PSCI_CPU_ENTRY' undeclared (first use in this function) 292 | pkvm_psci_notify(PKVM_PSCI_CPU_ENTRY, host_ctxt); | ^~~~~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors Kconfig warnings: (for reference only) WARNING: unmet direct dependencies detected for XFRM_OFFLOAD Depends on [n]: NET [=n] Selected by [y]: - GKI_HIDDEN_XFRM_OFFLOAD_CONFIGS [=y] WARNING: unmet direct dependencies detected for SND_VMASTER Depends on [n]: SOUND [=n] && SND [=n] Selected by [y]: - GKI_HIDDEN_SND_CONFIGS [=y] WARNING: unmet direct dependencies detected for CAN_RX_OFFLOAD Depends on [n]: NETDEVICES [=n] && CAN_DEV [=n] && CAN_NETLINK [=n] Selected by [y]: - GKI_HIDDEN_MCP251XFD_CONFIGS [=y] WARNING: unmet direct dependencies detected for SND_JACK_INPUT_DEV Depends on [n]: SOUND [=n] && SND [=n] && SND_JACK [=y] Selected by [y]: - GKI_HIDDEN_SND_CONFIGS [=y] WARNING: unmet direct dependencies detected for NET_DEVLINK Depends on [n]: NET [=n] Selected by [y]: - GKI_HIDDEN_NET_CONFIGS [=y] WARNING: unmet direct dependencies detected for WEXT_PROC Depends on [n]: NET [=n] && WIRELESS [=n] && PROC_FS [=y] && WEXT_CORE [=y] Selected by [y]: - GKI_LEGACY_WEXT_ALLCONFIG [=y] WARNING: unmet direct dependencies detected for DIMLIB Depends on [n]: NET [=n] Selected by [y]: - GKI_HIDDEN_VIRTUAL_CONFIGS [=y] WARNING: unmet direct dependencies detected for SND_PCM_ELD Depends on [n]: SOUND [=n] && SND [=n] Selected by [y]: - GKI_HIDDEN_SND_CONFIGS [=y] WARNING: unmet direct dependencies detected for WEXT_PRIV Depends on [n]: NET [=n] && WIRELESS [=n] Selected by [y]: - GKI_LEGACY_WEXT_ALLCONFIG [=y] WARNING: unmet direct dependencies detected for NET_PTP_CLASSIFY Depends on [n]: NET [=n] Selected by [y]: - GKI_HIDDEN_NET_CONFIGS [=y] WARNING: unmet direct dependencies detected for PHYLINK Depends on [n]: NETDEVICES [=n] Selected by [y]: - GKI_HIDDEN_ETHERNET_CONFIGS [=y] WARNING: unmet direct dependencies detected for SND_PCM_IEC958 Depends on [n]: SOUND [=n] && SND [=n] Selected by [y]: - GKI_HIDDEN_SND_SOC_CONFIGS [=y] WARNING: unmet direct dependencies detected for QCOM_SMEM_STATE Depends on [n]: QCOM_SOC [=n] Selected by [y]: - GKI_HIDDEN_QCOM_CONFIGS [=y] WARNING: unmet direct dependencies detected for WIRELESS_EXT Depends on [n]: NET [=n] && WIRELESS [=n] Selected by [y]: - GKI_LEGACY_WEXT_ALLCONFIG [=y] WARNING: unmet direct dependencies detected for WEXT_CORE Depends on [n]: NET [=n] && WIRELESS [=n] && (CFG80211_WEXT [=n] || WIRELESS_EXT [=y]) Selected by [y]: - GKI_LEGACY_WEXT_ALLCONFIG [=y] WARNING: unmet direct dependencies detected for SND_COMPRESS_ACCEL Depends on [n]: SOUND [=n] && SND [=n] Selected by [y]: - GKI_HIDDEN_SND_CONFIGS [=y] WARNING: unmet direct dependencies detected for SND_JACK Depends on [n]: SOUND [=n] && SND [=n] Selected by [y]: - GKI_HIDDEN_SND_CONFIGS [=y] WARNING: unmet direct dependencies detected for PAGE_POOL Depends on [n]: NET [=n] Selected by [y]: - GKI_HIDDEN_NET_CONFIGS [=y] vim +/GUEST_SMC_NOT_HANDLED +45 arch/arm64/kvm/hyp/include/nvhe/modules.h 16 17 #ifdef CONFIG_MODULES 18 int __pkvm_init_module(void *host_mod); 19 int __pkvm_register_hcall(unsigned long hfn_hyp_va); 20 int handle_host_dynamic_hcall(struct user_pt_regs *regs, int id); 21 void __pkvm_close_module_registration(void); 22 bool module_handle_host_perm_fault(struct user_pt_regs *regs, u64 esr, u64 addr); 23 bool module_handle_host_smc(struct user_pt_regs *regs); 24 enum pkvm_smc_handler_ret 25 module_handle_guest_smc(struct arm_smccc_1_2_regs *regs, struct arm_smccc_1_2_regs *res, 26 pkvm_handle_t handle); 27 const uuid_t *module_get_guest_trng_uuid(void); 28 u64 module_get_guest_trng_rng(u64 *entropy, int nbits); 29 #else 30 static inline int __pkvm_init_module(void *module_init) { return -EOPNOTSUPP; } 31 static inline int 32 __pkvm_register_hcall(unsigned long hfn_hyp_va) { return -EOPNOTSUPP; } 33 static inline int 34 handle_host_dynamic_hcall(struct kvm_cpu_context *host_ctxt, int id) 35 { 36 return HCALL_UNHANDLED; 37 } 38 static inline void __pkvm_close_module_registration(void) { } 39 bool module_handle_host_perm_fault(struct user_pt_regs *regs, u64 esr, u64 addr) { return false; } 40 bool module_handle_host_smc(struct user_pt_regs *regs) { return false; } 41 enum pkvm_smc_handler_ret 42 module_handle_guest_smc(struct arm_smccc_1_2_regs *regs, struct arm_smccc_1_2_regs *res, 43 pkvm_handle_t handle) 44 { > 45 return GUEST_SMC_NOT_HANDLED; -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki