[PATCH 29/74] x86, lto: Make amd.c vide visible

2012-08-18 Thread Andi Kleen
From: Andi Kleen 

A label declared in inline assembler has to be visible

Signed-off-by: Andi Kleen 
---
 arch/x86/kernel/cpu/amd.c |4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/x86/kernel/cpu/amd.c b/arch/x86/kernel/cpu/amd.c
index 9d92e19..2c02d92 100644
--- a/arch/x86/kernel/cpu/amd.c
+++ b/arch/x86/kernel/cpu/amd.c
@@ -67,8 +67,8 @@ static inline int wrmsrl_amd_safe(unsigned msr, unsigned long 
long val)
  * performance at the same time..
  */
 
-extern void vide(void);
-__asm__(".align 4\nvide: ret");
+extern __visible void vide(void);
+__asm__(".globl vide\n\t.align 4\nvide: ret");
 
 static void __cpuinit init_amd_k5(struct cpuinfo_x86 *c)
 {
-- 
1.7.7.6

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[PATCH 29/74] x86, lto: Make amd.c vide visible

2012-08-18 Thread Andi Kleen
From: Andi Kleen a...@linux.intel.com

A label declared in inline assembler has to be visible

Signed-off-by: Andi Kleen a...@linux.intel.com
---
 arch/x86/kernel/cpu/amd.c |4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/x86/kernel/cpu/amd.c b/arch/x86/kernel/cpu/amd.c
index 9d92e19..2c02d92 100644
--- a/arch/x86/kernel/cpu/amd.c
+++ b/arch/x86/kernel/cpu/amd.c
@@ -67,8 +67,8 @@ static inline int wrmsrl_amd_safe(unsigned msr, unsigned long 
long val)
  * performance at the same time..
  */
 
-extern void vide(void);
-__asm__(.align 4\nvide: ret);
+extern __visible void vide(void);
+__asm__(.globl vide\n\t.align 4\nvide: ret);
 
 static void __cpuinit init_amd_k5(struct cpuinfo_x86 *c)
 {
-- 
1.7.7.6

--
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/