Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp4030526img; Tue, 26 Mar 2019 01:19:52 -0700 (PDT) X-Google-Smtp-Source: APXvYqy2t21GxV9yaNsJDezBtcbJfs4C8GREHT2RfaLddhyvm1WKheuDyCDo4IG4jsROZ8zWQpQR X-Received: by 2002:a17:902:2e03:: with SMTP id q3mr29363520plb.166.1553588392659; Tue, 26 Mar 2019 01:19:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553588392; cv=none; d=google.com; s=arc-20160816; b=pP/26QTuxLNRTTbKxy9NQFLI7DV40A1YW9LOSYxxlGetK+5ryQKEUqfg/Cy9XLWNFA PuF9ZTQ9f8MD1zpNGyC1GdrJuDg6KVi3PEGZflrbwYmCQP5i/bHwaQXAsRps6x0By8JQ Q6saPuHSJSZ3IsiuhR/wQ6sQzJiZtrv6rvXFKb7N5WwoF/bQfMDheTKvjHL0yQwsiD7W Y4Nc8o/bhvfRQ4PF6nTPtpeoC0+Sc/Dr87UYHmVqfL3v5ghtHYJrra9aQfRIYAS71/S1 GFoINj/neHmoJ9kNXEOCw/okiHCrqj0aO8O2IhtVKFooAXB13AaH4hwhT5PIDWgVDuCQ CKXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=Dogn4+k5tR5qW8oKO0S04i3FC25QFgX5JkNr4EqZeYA=; b=rqO0iCg0u3mfmsW/5K9msuBTsx/hTtKTy89Tzh5RIvW1hwYN+VajYO5B+dqe46pwEH yLF0c819fkJWMOcl1nXQpN8JVqyYa+Kl2wvn59AKMoEzwQDL/LRgIq0y9Ic1Xj1gbVae I7Iz/Wms8IXDDxeScodegxs6mgyf4RLUtUkTW5NJBZuB5jQODhovxzS7x0JBhxGBzFI9 ML7JWoGOEVNEvL65vzfCfC+/fXWw3ezcKZJKX5+2UIhLlcxvs4AaHGWv7Nv+S1Rvqued Jb58nlm/Fbvvqp6AyEFtrqgEhqZkHVgYSHeli+8HV/baI/E3Tiz+AJN5IsXaJzkNQKBQ LD2Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w12si16652422pll.172.2019.03.26.01.19.37; Tue, 26 Mar 2019 01:19:52 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730944AbfCZISv (ORCPT + 99 others); Tue, 26 Mar 2019 04:18:51 -0400 Received: from mga14.intel.com ([192.55.52.115]:6215 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726042AbfCZISv (ORCPT ); Tue, 26 Mar 2019 04:18:51 -0400 X-Amp-Result: UNKNOWN X-Amp-Original-Verdict: FILE UNKNOWN X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga103.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 26 Mar 2019 01:18:50 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,271,1549958400"; d="scan'208";a="130215663" Received: from yisun1-ubuntu.bj.intel.com (HELO localhost) ([10.238.156.108]) by orsmga006.jf.intel.com with ESMTP; 26 Mar 2019 01:18:48 -0700 Date: Tue, 26 Mar 2019 16:15:29 +0800 From: Yi Sun To: Andi Kleen Cc: x86@kernel.org, akpm@linux-foundation.org, linux-kernel@vger.kernel.org, Andi Kleen , kys@microsoft.com, haiyangz@microsoft.com Subject: Re: [PATCH 15/17] x86/hyperv: Make hv_vcpu_is_preempted visible Message-ID: <20190326081529.GF5182@yi.y.sun> References: <20190321220009.29334-1-andi@firstfloor.org> <20190321220009.29334-16-andi@firstfloor.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20190321220009.29334-16-andi@firstfloor.org> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 19-03-21 15:00:07, Andi Kleen wrote: > From: Andi Kleen > > 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 > Fixes: 3a025de64bf8 x86/hyperv: Enable PV qspinlock for Hyper-V > Signed-off-by: Andi Kleen > --- > 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; > } Reviewed-by: Yi Sun > -- > 2.20.1