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:
87b240c
)
x86/amd: Set ELF function type for vide()
author
Josh Poimboeuf
<
[email protected]
>
Thu, 21 Jan 2016 22:49:14 +0000
(16:49 -0600)
committer
Ingo Molnar
<
[email protected]
>
Wed, 24 Feb 2016 07:35:42 +0000
(08:35 +0100)
vide() is a callable function, but is missing the ELF function type,
which confuses tools like stacktool.
Properly annotate it to be a callable function. The generated code is
unchanged.
Signed-off-by: Josh Poimboeuf <
[email protected]
>
Reviewed-by: Borislav Petkov <
[email protected]
>
Cc: Andrew Morton <
[email protected]
>
Cc: Andy Lutomirski <
[email protected]
>
Cc: Andy Lutomirski <
[email protected]
>
Cc: Arnaldo Carvalho de Melo <
[email protected]
>
Cc: Bernd Petrovitsch <
[email protected]
>
Cc: Borislav Petkov <
[email protected]
>
Cc: Brian Gerst <
[email protected]
>
Cc: Chris J Arges <
[email protected]
>
Cc: Denys Vlasenko <
[email protected]
>
Cc: H. Peter Anvin <
[email protected]
>
Cc: Jiri Slaby <
[email protected]
>
Cc: Linus Torvalds <
[email protected]
>
Cc: Michal Marek <
[email protected]
>
Cc: Namhyung Kim <
[email protected]
>
Cc: Pedro Alves <
[email protected]
>
Cc: Peter Zijlstra <
[email protected]
>
Cc: Thomas Gleixner <
[email protected]
>
Cc:
[email protected]
Link:
http://lkml.kernel.org/r/a324095f5c9390ff39b15b4562ea1bbeda1a8282.1453405861.git.jpoimboe@redhat.com
Signed-off-by: Ingo Molnar <
[email protected]
>
arch/x86/kernel/cpu/amd.c
patch
|
blob
|
history
diff --git
a/arch/x86/kernel/cpu/amd.c
b/arch/x86/kernel/cpu/amd.c
index a07956a08936e8ea56c1a73075d700d281895577..fe2f089f03d2dbd83a8a003055b8b03007b20d85 100644
(file)
--- a/
arch/x86/kernel/cpu/amd.c
+++ b/
arch/x86/kernel/cpu/amd.c
@@
-75,7
+75,10
@@
static inline int wrmsrl_amd_safe(unsigned msr, unsigned long long val)
*/
extern __visible void vide(void);
-__asm__(".globl vide\n\t.align 4\nvide: ret");
+__asm__(".globl vide\n"
+ ".type vide, @function\n"
+ ".align 4\n"
+ "vide: ret\n");
static void init_amd_k5(struct cpuinfo_x86 *c)
{