diff options
author | Arnd Bergmann <arnd@arndb.de> | 2018-02-02 15:56:19 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2018-02-13 14:33:35 +0100 |
commit | 01684e72f16727e6ae0aeb1392f478e11ec5b8f7 (patch) | |
tree | 4bb22328882e248856bda2ddc892f20215427b5b /arch | |
parent | c25d99d20ba69824a1e2cc118e04b877cd427afc (diff) | |
download | linux-stable-01684e72f16727e6ae0aeb1392f478e11ec5b8f7.tar.gz linux-stable-01684e72f16727e6ae0aeb1392f478e11ec5b8f7.tar.bz2 linux-stable-01684e72f16727e6ae0aeb1392f478e11ec5b8f7.zip |
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@arndb.de>
Acked-by: Masami Hiramatsu <mhiramat@kernel.org>
Acked-by: Thomas Gleixner <tglx@linutronix.de>
Cc: Alexei Starovoitov <ast@kernel.org>
Cc: Josef Bacik <jbacik@fb.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Nicolas Pitre <nico@linaro.org>
Cc: Peter Zijlstra <peterz@infradead.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@kernel.org>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/x86/lib/error-inject.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/lib/error-inject.c b/arch/x86/lib/error-inject.c index 7b881d03d0dd..3cdf06128d13 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" |