aboutsummaryrefslogtreecommitdiff
path: root/arch/x86/hyperv/hv_spinlock.c
diff options
context:
space:
mode:
authorAndi Kleen <[email protected]>2019-03-29 17:47:40 -0700
committerThomas Gleixner <[email protected]>2019-04-19 17:58:57 +0200
commit02143c2931c3c0faf088c5859a10de6c2b4f2d96 (patch)
tree0c8a81a3123fa142323820023b3fbf7a003f8358 /arch/x86/hyperv/hv_spinlock.c
parentba696429d290690db967e5f49463df4b2c1314a4 (diff)
x86/hyperv: Make hv_vcpu_is_preempted() visible
This function is referrenced from assembler, so it needs to be marked visible for LTO. Fixes: 3a025de64bf8 ("x86/hyperv: Enable PV qspinlock for Hyper-V") Signed-off-by: Andi Kleen <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Reviewed-by: Yi Sun <[email protected]> Cc: [email protected] Cc: [email protected] Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'arch/x86/hyperv/hv_spinlock.c')
-rw-r--r--arch/x86/hyperv/hv_spinlock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/hyperv/hv_spinlock.c b/arch/x86/hyperv/hv_spinlock.c
index a861b0456b1a..07f21a06392f 100644
--- a/arch/x86/hyperv/hv_spinlock.c
+++ b/arch/x86/hyperv/hv_spinlock.c
@@ -56,7 +56,7 @@ static void hv_qlock_wait(u8 *byte, u8 val)
/*
* Hyper-V does not support this so far.
*/
-bool hv_vcpu_is_preempted(int vcpu)
+__visible bool hv_vcpu_is_preempted(int vcpu)
{
return false;
}