Skip to content

Commit 657bf70

Browse files
committed
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 parent 0dccbc7 commit 657bf70

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

arch/x86/include/asm/kvm_para.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,6 @@ bool kvm_para_available(void);
124124
unsigned int kvm_arch_para_features(void);
125125
unsigned int kvm_arch_para_hints(void);
126126
void kvm_async_pf_task_wait_schedule(u32 token);
127-
void kvm_async_pf_task_wake(u32 token);
128127
u32 kvm_read_and_reset_apf_flags(void);
129128
bool __kvm_handle_async_pf(struct pt_regs *regs, u32 token);
130129

@@ -148,7 +147,6 @@ static inline void kvm_spinlock_init(void)
148147

149148
#else /* CONFIG_KVM_GUEST */
150149
#define kvm_async_pf_task_wait_schedule(T) do {} while(0)
151-
#define kvm_async_pf_task_wake(T) do {} while(0)
152150

153151
static inline bool kvm_para_available(void)
154152
{

arch/x86/kernel/kvm.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ static void apf_task_wake_all(void)
190190
}
191191
}
192192

193-
void kvm_async_pf_task_wake(u32 token)
193+
static void kvm_async_pf_task_wake(u32 token)
194194
{
195195
u32 key = hash_32(token, KVM_TASK_SLEEP_HASHBITS);
196196
struct kvm_task_sleep_head *b = &async_pf_sleepers[key];
@@ -241,7 +241,6 @@ void kvm_async_pf_task_wake(u32 token)
241241
/* A dummy token might be allocated and ultimately not used. */
242242
kfree(dummy);
243243
}
244-
EXPORT_SYMBOL_GPL(kvm_async_pf_task_wake);
245244

246245
noinstr u32 kvm_read_and_reset_apf_flags(void)
247246
{

0 commit comments

Comments
 (0)