[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <tip-01684e72f16727e6ae0aeb1392f478e11ec5b8f7@git.kernel.org>
Date: Tue, 13 Feb 2018 07:25:56 -0800
From: tip-bot for Arnd Bergmann <tipbot@...or.com>
To: linux-tip-commits@...r.kernel.org
Cc: mhiramat@...nel.org, torvalds@...ux-foundation.org, arnd@...db.de,
hpa@...or.com, jbacik@...com, ast@...nel.org, nico@...aro.org,
linux-kernel@...r.kernel.org, peterz@...radead.org,
mingo@...nel.org, tglx@...utronix.de
Subject: [tip:x86/urgent] x86/error_inject: Make just_return_func() globally
visible
Commit-ID: 01684e72f16727e6ae0aeb1392f478e11ec5b8f7
Gitweb: https://git.kernel.org/tip/01684e72f16727e6ae0aeb1392f478e11ec5b8f7
Author: Arnd Bergmann <arnd@...db.de>
AuthorDate: Fri, 2 Feb 2018 15:56:19 +0100
Committer: Ingo Molnar <mingo@...nel.org>
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':
<artificial>:(.text+0x7f3): undefined reference to `just_return_func'
Marking the symbol .globl makes it work as expected.
Signed-off-by: Arnd Bergmann <arnd@...db.de>
Acked-by: Masami Hiramatsu <mhiramat@...nel.org>
Acked-by: Thomas Gleixner <tglx@...utronix.de>
Cc: Alexei Starovoitov <ast@...nel.org>
Cc: Josef Bacik <jbacik@...com>
Cc: Linus Torvalds <torvalds@...ux-foundation.org>
Cc: Nicolas Pitre <nico@...aro.org>
Cc: Peter Zijlstra <peterz@...radead.org>
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 <mingo@...nel.org>
---
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"
Powered by blists - more mailing lists