Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

x86/kvm: Make kvm_async_pf_task_wake() a local static helper

Make kvm_async_pf_task_wake() static and drop its export, as the symbol is
only referenced from within kvm.c.

No functional change intended.

Link: https://lore.kernel.org/r/20250729153901.564123-1-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>

+1 -4
-2
arch/x86/include/asm/kvm_para.h
··· 124 124 unsigned int kvm_arch_para_features(void); 125 125 unsigned int kvm_arch_para_hints(void); 126 126 void kvm_async_pf_task_wait_schedule(u32 token); 127 - void kvm_async_pf_task_wake(u32 token); 128 127 u32 kvm_read_and_reset_apf_flags(void); 129 128 bool __kvm_handle_async_pf(struct pt_regs *regs, u32 token); 130 129 ··· 147 148 148 149 #else /* CONFIG_KVM_GUEST */ 149 150 #define kvm_async_pf_task_wait_schedule(T) do {} while(0) 150 - #define kvm_async_pf_task_wake(T) do {} while(0) 151 151 152 152 static inline bool kvm_para_available(void) 153 153 {
+1 -2
arch/x86/kernel/kvm.c
··· 190 190 } 191 191 } 192 192 193 - void kvm_async_pf_task_wake(u32 token) 193 + static void kvm_async_pf_task_wake(u32 token) 194 194 { 195 195 u32 key = hash_32(token, KVM_TASK_SLEEP_HASHBITS); 196 196 struct kvm_task_sleep_head *b = &async_pf_sleepers[key]; ··· 241 241 /* A dummy token might be allocated and ultimately not used. */ 242 242 kfree(dummy); 243 243 } 244 - EXPORT_SYMBOL_GPL(kvm_async_pf_task_wake); 245 244 246 245 noinstr u32 kvm_read_and_reset_apf_flags(void) 247 246 {