Message ID | 20180205151300.539874-3-arnd@arndb.de |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.46.124.24 with SMTP id x24csp2056049ljc; Mon, 5 Feb 2018 07:15:45 -0800 (PST) X-Google-Smtp-Source: AH8x2262JsTa/nAqCQ/rD5LWzE/uSqRtxI8TGz0nPhrmMNW6QiilW5nwj14VlFBlzk8IGDzk5s1s X-Received: by 10.98.7.73 with SMTP id b70mr48390029pfd.39.1517843744977; Mon, 05 Feb 2018 07:15:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517843744; cv=none; d=google.com; s=arc-20160816; b=AsORxHPbKWIQ8rogRlHNO8rBNDTNbaQVZMCJJzTMjjXMqIDBG/rw44UQjOiNucn5jl XyCBxrj2UTplQpNFVXyDo4PDfZRHtoETFuP0jXFRYuGgRLul8qWtayO3uox0m02cj8Ff 1cGZuqeuniM/tS0EKNf8cXvq/iyQbE3WjKIe5XPLrKx31hPzi5DrpN/KPKoch6Spnacq gu7fdnneTlTbXs9BxBq2ffnZ7TSfjY+BoDclarZEqvLfRbvu2pY2dEKp2RJSINP5E4TR VxlsrYnq/x4hInYX/uKgDkYuwnOqlsH4AJIwE3+3/6rmmFlmu/aRtWi1BzGxzJSgJIG1 mHkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=tGe3AcON8zI1PppWwROXzf5/chS9jWnwyy0uyD8b2/k=; b=P5DZ2pWse+XZIPJaXIo0qhQo+D53ZkXcC5TzzlRsdh26Fh/bnBZg5oNdfrPa2ue3j5 Rc3cXtbB2/xi43t8vtEIdr2irlXoXz04jd1pbq2H2Kk7+Um47KyJQLkaodfB9SHQhFmZ D9lyTBiS83vMIBJb7sUJx/2d3v59QcCA8j7/WlI61JI0WLnsDey5v4INHveVyCvqahmC g3AfTkwOnVnY9H7WzX0vqYJ/s00CQZxcJri1T9P1+yQ7qlIx8yyzYLuCleRBOFMe5Smt 2RdyJKLjNlvVgnuQfb8H4lVH0bWiYdaNFFCxLs5CU8LyQKAAMdvAghfbY0l0iGEnNpNZ +QTQ== 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: <linux-kernel-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k189si5277029pgc.250.2018.02.05.07.15.44; Mon, 05 Feb 2018 07:15:44 -0800 (PST) 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 S1753260AbeBEPPl (ORCPT <rfc822; dan.rue@linaro.org> + 28 others); Mon, 5 Feb 2018 10:15:41 -0500 Received: from mout.kundenserver.de ([212.227.17.24]:42539 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753037AbeBEPPc (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Mon, 5 Feb 2018 10:15:32 -0500 Received: from wuerfel.lan ([95.208.111.237]) by mrelayeu.kundenserver.de (mreue101 [212.227.15.145]) with ESMTPA (Nemesis) id 0MQNoq-1eH7Rh3FgS-00Tnco; Mon, 05 Feb 2018 16:14:13 +0100 From: Arnd Bergmann <arnd@arndb.de> To: Andi Kleen <ak@linux.intel.com> Cc: nico@linaro.org, linux-kernel@vger.kernel.org, Arnd Bergmann <arnd@arndb.de>, Thomas Gleixner <tglx@linutronix.de>, Ingo Molnar <mingo@redhat.com>, "H. Peter Anvin" <hpa@zytor.com>, x86@kernel.org, David Woodhouse <dwmw@amazon.co.uk>, Borislav Petkov <bp@suse.de> Subject: [PATCH 2/2] x86: make __ibp_barrier visible Date: Mon, 5 Feb 2018 16:12:53 +0100 Message-Id: <20180205151300.539874-3-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 In-Reply-To: <20180205151300.539874-1-arnd@arndb.de> References: <20180205151300.539874-1-arnd@arndb.de> X-Provags-ID: V03:K0:KZQT0FH1nAaojQPCyTPQCi7eKXrIHLjOGE0cGSR1vz8606thuJw nUYsffLfXxVy4qlwS3vmWWhY4SYp2F2fRtVoVSh6lgeEIEH7me+bhpyiXyZEuZKVakEKUIb +GbJDur/wmX4Cxuke3gIUa77jE0xflavd2TqByDE7KUeYCgWz9r/xMs4csfKDxj8p3L9Pu5 Ebry4maUxFkJNIWZN6sXw== X-UI-Out-Filterresults: notjunk:1; V01:K0:QnD3WMQzmSk=:Fh6bD7+Db7SB6d3eqHrF3J j0qlyeWxUeFYxsjThT5wTLa6RjWV3BqyhXVDFWIBvOksDJyV3SxrM5YRjEmE85nUn3PFRZi1y Ny/QRh/qM7cP8LeTxpN7iiP6wg+KJDnYPqkdnLqFzcGQrbOA4GPkqpxY7ZNvpWtEslAdGF3nu opgzEG1U8ZDwKRVgucTR2K59YzU/0/ITE5A6ndGDb5E/ShEMkICHIHF7Y8OO4Z9ZWoG/5gAIY v9tWLLqPteiu/C3fpYEyBukeIpCZmU++I41K4jSGLAtUjnXAr8rZRSoHhEv04Z6WT0FPh1+dB 5AuTrBM1U6UQfEbit7nIiNcwmAwx+B+/GsWLyD3v3l6LCT+PitX4Qo1EEyhkYMW/Vg+HaLwO5 OfKPFC0AjGu5ymH1dfC0FyNL7lL6i2E9IS4HLIddWx8OWaDEuvOGhLsSqYRZgeefZJpORtwqt datS3vPxEw6kXW72b/LByyc2fLUBy1knfZ6VmvQ1IRpP0xDAzktUHGc7YYl8Kotyh4287idE/ /bSmrEQ9M1ctrjl2RKJqYY6mNRiigxS9qDAtNauC/2kY4iQApEYJriOtDvNJlyNW1MRxeLtxE pf9qNCZKqohlVS84YaCCw6sv2jc2UFXAxFvXWAGUrlNM13r5h9bexrbRmcER5kMICtOC3aP0d D8SUP4Qht92OL2290g5iJKIEx/Sn0jlyJjohjhfVZyjBJTQ2WC8ZA8XCTQiKiJ/lo5mZonjcj UVYg+jqx/J+y9X0EiibwVtpQNCVIKYkubtXiCQ== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org |
Series |
LTO: two more fixes
|
expand
|
diff --git a/arch/x86/kernel/cpu/bugs.c b/arch/x86/kernel/cpu/bugs.c index 71949bf2de5a..c3f5fe1c6e83 100644 --- a/arch/x86/kernel/cpu/bugs.c +++ b/arch/x86/kernel/cpu/bugs.c @@ -338,7 +338,7 @@ ssize_t cpu_show_spectre_v2(struct device *dev, } #endif -void __ibp_barrier(void) +void __visible __ibp_barrier(void) { __wrmsr(MSR_IA32_PRED_CMD, PRED_CMD_IBPB, 0); }
LTO linking was broken by the addition of __ibp_barrier, which only has relocations from assembler code, and not from C, so the linker decides to drop it: ./ccfzUJ1l.ltrans0.ltrans.o:(.altinstr_replacement+0x42): undefined reference to `__ibp_barrier' Fixes: 64e16720ea08 ("x86/speculation: Simplify indirect_branch_prediction_barrier()") Signed-off-by: Arnd Bergmann <arnd@arndb.de> --- arch/x86/kernel/cpu/bugs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.9.0