]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
x86/kvm: Make kvm_async_pf_task_wake() a local static helper
authorSean Christopherson <seanjc@google.com>
Tue, 29 Jul 2025 15:39:01 +0000 (08:39 -0700)
committerSean Christopherson <seanjc@google.com>
Thu, 11 Sep 2025 15:57:16 +0000 (08:57 -0700)
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>
arch/x86/include/asm/kvm_para.h
arch/x86/kernel/kvm.c

index 57bc74e112f20936d6ee2601443892ecc083b533..4a47c16e2df8c0ccfab6fd613e1553a301f85b38 100644 (file)
@@ -124,7 +124,6 @@ bool kvm_para_available(void);
 unsigned int kvm_arch_para_features(void);
 unsigned int kvm_arch_para_hints(void);
 void kvm_async_pf_task_wait_schedule(u32 token);
-void kvm_async_pf_task_wake(u32 token);
 u32 kvm_read_and_reset_apf_flags(void);
 bool __kvm_handle_async_pf(struct pt_regs *regs, u32 token);
 
@@ -148,7 +147,6 @@ static inline void kvm_spinlock_init(void)
 
 #else /* CONFIG_KVM_GUEST */
 #define kvm_async_pf_task_wait_schedule(T) do {} while(0)
-#define kvm_async_pf_task_wake(T) do {} while(0)
 
 static inline bool kvm_para_available(void)
 {
index 57379698015ed314cda52bfe731206abf9d1df6c..56608d4d735f204e1211e4eeb21b493f17cae5af 100644 (file)
@@ -190,7 +190,7 @@ static void apf_task_wake_all(void)
        }
 }
 
-void kvm_async_pf_task_wake(u32 token)
+static void kvm_async_pf_task_wake(u32 token)
 {
        u32 key = hash_32(token, KVM_TASK_SLEEP_HASHBITS);
        struct kvm_task_sleep_head *b = &async_pf_sleepers[key];
@@ -241,7 +241,6 @@ again:
        /* A dummy token might be allocated and ultimately not used.  */
        kfree(dummy);
 }
-EXPORT_SYMBOL_GPL(kvm_async_pf_task_wake);
 
 noinstr u32 kvm_read_and_reset_apf_flags(void)
 {