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 <lkp@intel.com>
Change-Id: Ie59cbf46442721de78ef51523debadc4c156530e
Signed-off-by: Quentin Perret <qperret@google.com>
This commit is contained in:
Quentin Perret
2022-12-07 17:43:13 +00:00
parent ec51620fe1
commit 4287da7498

View File

@@ -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)