]> Git Repo - linux.git/commitdiff
x86/hyperv: Make hv_vcpu_is_preempted() visible
authorAndi Kleen <[email protected]>
Sat, 30 Mar 2019 00:47:40 +0000 (17:47 -0700)
committerThomas Gleixner <[email protected]>
Fri, 19 Apr 2019 15:58:57 +0000 (17:58 +0200)
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]
arch/x86/hyperv/hv_spinlock.c

index a861b0456b1a7a0bd1e71bb2e948f169ae9a8a09..07f21a06392fb9940c28025e654d66c2740846f1 100644 (file)
@@ -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;
 }
This page took 0.058162 seconds and 4 git commands to generate.