Received: by 10.223.185.116 with SMTP id b49csp3766711wrg; Tue, 13 Feb 2018 07:27:41 -0800 (PST) X-Google-Smtp-Source: AH8x225vTsFvSMT8te84yCHBkSp809+84TsMYszeqq9+sjaoFQwKgpt2J9EaLtIzLLMytFciPm/X X-Received: by 10.99.179.8 with SMTP id i8mr1256333pgf.337.1518535661236; Tue, 13 Feb 2018 07:27:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518535661; cv=none; d=google.com; s=arc-20160816; b=e5yNin6TEE1+JohrYJf64Pd9X0SNO2ORJZ2GHIQ3NW5HRz2y4wLoTSclbx88+onQKe CZyI76ihLHSpmIlAl4nuHwf3ynxDPDOOR6qiyN+mgzOD6oJsj+uKBE/bMcA2ZqL95/m8 5i6PjnrBMxbqWV+L7zMNhJKYUwOrR2J0rJWcLLHwCWnw+d/WbH7f5RjLyPEFz58J91vv bjWxVm9WLsIhsLk9bUN+f/LLAIQrVUSzjSG9OG7FJnIEWo4EIXmihkZCc8uDeRyaEFdp Fv2ALDGNGH6jc7/V+TtICcxAlCXN32Xv6rpfcgV53YwYZ70t6LylPD6nR+KXa9Wfz7o8 DTYA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:mime-version:robot-unsubscribe:robot-id :git-commit-id:subject:to:references:in-reply-to:reply-to:cc :message-id:from:date:arc-authentication-results; bh=7/If3E8w+qpRaAfYkIUgf5u4SWC2/7spIvelCd5a2ds=; b=GJr8g40MfQRKcIDjh3+RzI3evhEd29721Zof6gAHHHK4XWVDo8LCZeJX7nFxQI27wQ azj4TSl231CE1ci/6fYhq7dxM4+6LrG7E9GQCWS4yJTbPGXWeY1F+vS2G7uvA9EUdvfN pPo3MXQN41+Ck/pb/ye+yZFdUcCXr8DG7q3ugZFn9fteow4gKjc+CdVAYQgK4W0YFmmQ gzCELQkFCw44UjUQJ94Uduf+OOtpsMPXSLNrkdlkBjGqAzmHHN2bmFneBlCwLonU2Ocr EDC+ElaCS2cj7itGIAi6p3/6UZjsa1vXtiL2GQJZg7w37y8n55ozSzPvOznzbnL6lNSw HdVw== 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 f4si3798033pgn.334.2018.02.13.07.27.26; Tue, 13 Feb 2018 07:27:41 -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 S965107AbeBMP01 (ORCPT + 99 others); Tue, 13 Feb 2018 10:26:27 -0500 Received: from terminus.zytor.com ([198.137.202.136]:54403 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964929AbeBMP0Z (ORCPT ); Tue, 13 Feb 2018 10:26:25 -0500 Received: from terminus.zytor.com (localhost [127.0.0.1]) by terminus.zytor.com (8.15.2/8.15.2) with ESMTP id w1DFPuVu004253; Tue, 13 Feb 2018 07:25:56 -0800 Received: (from tipbot@localhost) by terminus.zytor.com (8.15.2/8.15.2/Submit) id w1DFPuNo004250; Tue, 13 Feb 2018 07:25:56 -0800 Date: Tue, 13 Feb 2018 07:25:56 -0800 X-Authentication-Warning: terminus.zytor.com: tipbot set sender to tipbot@zytor.com using -f From: tip-bot for Arnd Bergmann Message-ID: Cc: mhiramat@kernel.org, torvalds@linux-foundation.org, arnd@arndb.de, hpa@zytor.com, jbacik@fb.com, ast@kernel.org, nico@linaro.org, linux-kernel@vger.kernel.org, peterz@infradead.org, mingo@kernel.org, tglx@linutronix.de Reply-To: tglx@linutronix.de, mingo@kernel.org, linux-kernel@vger.kernel.org, peterz@infradead.org, nico@linaro.org, ast@kernel.org, jbacik@fb.com, hpa@zytor.com, arnd@arndb.de, torvalds@linux-foundation.org, mhiramat@kernel.org In-Reply-To: <20180202145634.200291-3-arnd@arndb.de> References: <20180202145634.200291-3-arnd@arndb.de> To: linux-tip-commits@vger.kernel.org Subject: [tip:x86/urgent] x86/error_inject: Make just_return_func() globally visible Git-Commit-ID: 01684e72f16727e6ae0aeb1392f478e11ec5b8f7 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 X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on terminus.zytor.com Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 01684e72f16727e6ae0aeb1392f478e11ec5b8f7 Gitweb: https://git.kernel.org/tip/01684e72f16727e6ae0aeb1392f478e11ec5b8f7 Author: Arnd Bergmann AuthorDate: Fri, 2 Feb 2018 15:56:19 +0100 Committer: Ingo Molnar CommitDate: Tue, 13 Feb 2018 14:33:35 +0100 x86/error_inject: Make just_return_func() globally visible With link time optimizations enabled, I get a link failure: ./ccLbOEHX.ltrans19.ltrans.o: In function `override_function_with_return': :(.text+0x7f3): undefined reference to `just_return_func' Marking the symbol .globl makes it work as expected. Signed-off-by: Arnd Bergmann Acked-by: Masami Hiramatsu Acked-by: Thomas Gleixner Cc: Alexei Starovoitov Cc: Josef Bacik Cc: Linus Torvalds Cc: Nicolas Pitre Cc: Peter Zijlstra Fixes: 540adea3809f ("error-injection: Separate error-injection from kprobe") Link: http://lkml.kernel.org/r/20180202145634.200291-3-arnd@arndb.de Signed-off-by: Ingo Molnar --- arch/x86/lib/error-inject.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/lib/error-inject.c b/arch/x86/lib/error-inject.c index 7b881d0..3cdf061 100644 --- a/arch/x86/lib/error-inject.c +++ b/arch/x86/lib/error-inject.c @@ -7,6 +7,7 @@ asmlinkage void just_return_func(void); asm( ".type just_return_func, @function\n" + ".globl just_return_func\n" "just_return_func:\n" " ret\n" ".size just_return_func, .-just_return_func\n"