lkml.org 
[lkml]   [2019]   [Mar]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH v2 6/9] x86/hyperv: Make hv_vcpu_is_preempted visible
    Date
    From: Andi Kleen <ak@linux.intel.com>

    This function is referrenced from assembler, so need to be marked
    visible for LTO.

    Cc: yi.y.sun@linux.intel.com
    Cc: kys@microsoft.com
    Cc: haiyangz@microsoft.com
    Reviewed-by: Yi Sun <yi.y.sun@linux.intel.com>
    Fixes: 3a025de64bf8 x86/hyperv: Enable PV qspinlock for Hyper-V
    Signed-off-by: Andi Kleen <ak@linux.intel.com>
    ---
    arch/x86/hyperv/hv_spinlock.c | 2 +-
    1 file changed, 1 insertion(+), 1 deletion(-)

    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;
    }
    --
    2.20.1
    \
     
     \ /
      Last update: 2019-03-30 01:48    [W:4.868 / U:0.200 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site