From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-12.1 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SIGNED_OFF_BY,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id AA4FAC282DA for ; Fri, 19 Apr 2019 19:04:55 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 77A4920643 for ; Fri, 19 Apr 2019 19:04:55 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=zytor.com header.i=@zytor.com header.b="kCuG+Oek" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729202AbfDSTDy (ORCPT ); Fri, 19 Apr 2019 15:03:54 -0400 Received: from terminus.zytor.com ([198.137.202.136]:42949 "EHLO mail.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729111AbfDSTDu (ORCPT ); Fri, 19 Apr 2019 15:03:50 -0400 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTPS id x3JG43J0335992 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Fri, 19 Apr 2019 09:04:03 -0700 DKIM-Filter: OpenDKIM Filter v2.11.0 terminus.zytor.com x3JG43J0335992 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zytor.com; s=2019041745; t=1555689844; bh=fcIO2T55ipKOMm70Wmw1vjd/SlINBs4aCU9qn7nFX38=; h=Date:From:Cc:Reply-To:In-Reply-To:References:To:Subject:From; b=kCuG+OekGzQ/L0WZLM5KOv3jhhm/bHpvHpIC4RmSblkT5wxCDKvoOW6ez/zJ+cqgt NYusgwGomV3hT6I3eqz9x99GVT8dSxFYG5fUkcwDeTEodpggnWzvQoEdqD6PoeDI0v ksiHrLvOXYWljx9MnOZ+oiMhTNw5XAq5hEsZTWkJVNaIv5np7mJM1Rv54U20wLoXA1 M1wdwyNC3apKCCoAZ5bo1i+0OCgzmFxzTVgSdv8eCARatyHZfGJ1w22cenFtZd1Hv6 6b0SS8n4+SJRcK5x3Y2g0LP/00He29AnKQookceKJXkskrRRpEwpNnyTyx97A9vxB2 0c4wC+C2OzmpQ== Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id x3JG43kA335942; Fri, 19 Apr 2019 09:04:03 -0700 Date: Fri, 19 Apr 2019 09:04:03 -0700 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: tip-bot for Andi Kleen Message-ID: Cc: linux-kernel@vger.kernel.org, mingo@kernel.org, tglx@linutronix.de, ak@linux.intel.com, yi.y.sun@linux.intel.com, hpa@zytor.com Reply-To: ak@linux.intel.com, linux-kernel@vger.kernel.org, yi.y.sun@linux.intel.com, tglx@linutronix.de, mingo@kernel.org, hpa@zytor.com In-Reply-To: <20190330004743.29541-6-andi@firstfloor.org> References: <20190330004743.29541-6-andi@firstfloor.org> To: linux-tip-commits@vger.kernel.org Subject: [tip:x86/platform] x86/hyperv: Make hv_vcpu_is_preempted() visible Git-Commit-ID: 02143c2931c3c0faf088c5859a10de6c2b4f2d96 X-Mailer: tip-git-log-daemon Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=UTF-8 Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 02143c2931c3c0faf088c5859a10de6c2b4f2d96 Gitweb: https://git.kernel.org/tip/02143c2931c3c0faf088c5859a10de6c2b4f2d96 Author: Andi Kleen AuthorDate: Fri, 29 Mar 2019 17:47:40 -0700 Committer: Thomas Gleixner CommitDate: Fri, 19 Apr 2019 17:58:57 +0200 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 Signed-off-by: Thomas Gleixner Reviewed-by: Yi Sun Cc: kys@microsoft.com Cc: haiyangz@microsoft.com Link: https://lkml.kernel.org/r/20190330004743.29541-6-andi@firstfloor.org --- 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; }