Received: by 2002:a25:5b86:0:0:0:0:0 with SMTP id p128csp2054814ybb; Fri, 29 Mar 2019 17:48:53 -0700 (PDT) X-Google-Smtp-Source: APXvYqwjENEKCEZveLXGJYaiccMkKxPCnS5avjjBKTmP5N7H0rzQY1TVHwXPdopWz5/SqGL+IOP5 X-Received: by 2002:a17:902:3183:: with SMTP id x3mr51450931plb.170.1553906933596; Fri, 29 Mar 2019 17:48:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553906933; cv=none; d=google.com; s=arc-20160816; b=cof1FSsRAL7bPArGML9L94AJaO2mmsLsJAIqoMLHAmdELJp2+LPA89nbEzMge8hxDv +AVbbHr3NEzjuDtVRlwdzjNKx54XppWJnWKYXhXjBbVIQZ4sRcJud5zVN16YDlCNi/ep mrvxIVOaHAuO6LSUmw8IfdbtTjeWqVzmkIkgrTEiUKwx5XLJm0DIagHw2mFIdLe/kTw2 rXpEYgM2+VbH+RyAFYj2q+FlZpypeP6O8o2KkwLW97TDsXKaNEwRlZKXmo37TLWTe5Ln ttDy310Qxl7ivjgFCt7UiuPLbYd8jk0FtiYUv9KDc8BD+7Ca7DKUH9x71CUdQArupAyI uIvQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=4P6LyTSryD8K53Bwy92c8Uuo1ev5MW+ckHC1SGhovgA=; b=SFBUBiz01NjfR+GayB5v9xVoBZVqg6/GwDggWZOIm2q7HqS4ytZwiRJopisVmDMo4J KKVUxQsidXNJlFUpt8jfiPF6Gnh+ShtIuirIYW9wdqcvvipKNlhDOg2MlhRZ+8opEL3G OjMnBEWCdFUwv7Z2IyNa9t+RyYlNi5/8oM5i14TXd6KCj30Vo83Cy4Feqqe2VmNPXh9G EM+J/DdImZQHMsIeqyDG0kLNoI/GDses2W/B/suYYSPYWxHvxl6MPlfFn6adty9FTyqc QYEKqxaGRvnIebRk2yDbYb1rX9zA3dl7oJ38Bccx/VdOUtmTIZ1McqRGUX1fSNmuTP31 khiw== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u125si1155396pgc.281.2019.03.29.17.48.38; Fri, 29 Mar 2019 17:48:53 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730473AbfC3Arx (ORCPT + 99 others); Fri, 29 Mar 2019 20:47:53 -0400 Received: from mga17.intel.com ([192.55.52.151]:6268 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730082AbfC3Arv (ORCPT ); Fri, 29 Mar 2019 20:47:51 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 29 Mar 2019 17:47:51 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.60,286,1549958400"; d="scan'208";a="311618921" Received: from tassilo.jf.intel.com (HELO tassilo.localdomain) ([10.7.201.137]) by orsmga005.jf.intel.com with ESMTP; 29 Mar 2019 17:47:50 -0700 Received: by tassilo.localdomain (Postfix, from userid 1000) id 09D5E301C79; Fri, 29 Mar 2019 17:47:51 -0700 (PDT) From: Andi Kleen To: x86@kernel.org Cc: linux-kernel@vger.kernel.org, Andi Kleen , yi.y.sun@linux.intel.com, kys@microsoft.com, haiyangz@microsoft.com Subject: [PATCH v2 6/9] x86/hyperv: Make hv_vcpu_is_preempted visible Date: Fri, 29 Mar 2019 17:47:40 -0700 Message-Id: <20190330004743.29541-6-andi@firstfloor.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20190330004743.29541-1-andi@firstfloor.org> References: <20190330004743.29541-1-andi@firstfloor.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Reviewed-by: Yi Sun 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; } -- 2.20.1