projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c25d99d
)
x86/error_inject: Make just_return_func() globally visible
author
Arnd Bergmann
<
[email protected]
>
Fri, 2 Feb 2018 14:56:19 +0000
(15:56 +0100)
committer
Ingo Molnar
<
[email protected]
>
Tue, 13 Feb 2018 13:33:35 +0000
(14:33 +0100)
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 <
[email protected]
>
Acked-by: Masami Hiramatsu <
[email protected]
>
Acked-by: Thomas Gleixner <
[email protected]
>
Cc: Alexei Starovoitov <
[email protected]
>
Cc: Josef Bacik <
[email protected]
>
Cc: Linus Torvalds <
[email protected]
>
Cc: Nicolas Pitre <
[email protected]
>
Cc: Peter Zijlstra <
[email protected]
>
Fixes: 540adea3809f ("error-injection: Separate error-injection from kprobe")
Link:
http://lkml.kernel.org/r/
[email protected]
Signed-off-by: Ingo Molnar <
[email protected]
>
arch/x86/lib/error-inject.c
patch
|
blob
|
history
diff --git
a/arch/x86/lib/error-inject.c
b/arch/x86/lib/error-inject.c
index 7b881d03d0ddd934f674343519159be1fe48a2cc..3cdf06128d13c11b60ca2aa7cadf32af03703020 100644
(file)
--- 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"