From 4287da7498176a833d06e9f6b35d761f969ffc62 Mon Sep 17 00:00:00 2001 From: Quentin Perret Date: Wed, 7 Dec 2022 17:43:13 +0000 Subject: [PATCH] ANDROID: KVM: arm64: Fix build with CONFIG_MODULES=n The recently introduced support for pKVM modules has clearly lacked a bit of testing with CONFIG_MODULES=n. Fix the broken __pkvm_init_module() stub to make the bots happy. Bug: 244543039 Bug: 244373730 Reported-by: kernel test robot Change-Id: Ie59cbf46442721de78ef51523debadc4c156530e Signed-off-by: Quentin Perret --- arch/arm64/kvm/hyp/include/nvhe/modules.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/kvm/hyp/include/nvhe/modules.h b/arch/arm64/kvm/hyp/include/nvhe/modules.h index 2453301352bb..d69aa744b82f 100644 --- a/arch/arm64/kvm/hyp/include/nvhe/modules.h +++ b/arch/arm64/kvm/hyp/include/nvhe/modules.h @@ -12,7 +12,7 @@ void pkvm_modules_unlock(void); bool pkvm_modules_enabled(void); int __pkvm_close_module_registration(void); #else -static inline int __pkvm_init_module(void *module_init); { return -EOPNOTSUPP; } +static inline int __pkvm_init_module(void *module_init) { return -EOPNOTSUPP; } static inline int __pkvm_register_hcall(unsigned long hfn_hyp_va) { return -EOPNOTSUPP; } static inline int handle_host_dynamic_hcall(struct kvm_cpu_context *host_ctxt)