Skip to contentSkip to conversation

x86/ipipe: fix compilation for x86_32

PATCH Applied Henning Schild 2 participants 2 messages May 4, 2017 – May 5, 2017 x86

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86/ipipe: fix compilation for x86_32

AMD MCE is just relevant for the 64Bit case and causes linking problems for 32.

---
 arch/x86/kernel/ipipe.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/kernel/ipipe.c +1 -1
index b207502..e3f5dc0 100644
@@ -134,7 +134,7 @@ void __init __ipipe_enable_pipeline(void)
 			  __ipipe_ack_apic);
 #endif
 
-#ifdef CONFIG_X86_MCE_AMD
+#if defined(CONFIG_X86_MCE_AMD) && defined(CONFIG_X86_64)
 	ipipe_request_irq(ipipe_root_domain,
 			  ipipe_apic_vector_irq(DEFERRED_ERROR_VECTOR),
 			  __ipipe_do_IRQ, smp_deferred_error_interrupt,
Signature · 1 line
2.10.2
#1 lore raw
Quoted 15 lines · Henning Schild

AMD MCE is just relevant for the 64Bit case and causes linking problems for 32.

---
 arch/x86/kernel/ipipe.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/x86/kernel/ipipe.c +0 -0
index b207502..e3f5dc0 100644

arch/x86/kernel/ipipe.c void __init __ipipe_enable_pipeline(void) · line 140

Quoted 8 lines
arch/x86/kernel/ipipe.c +1 -1
@@ -134,7 +134,7 @@ void __init __ipipe_enable_pipeline(void)
 			  __ipipe_ack_apic);
 #endif
 
-#ifdef CONFIG_X86_MCE_AMD
+#if defined(CONFIG_X86_MCE_AMD) && defined(CONFIG_X86_64)
 	ipipe_request_irq(ipipe_root_domain,
 			  ipipe_apic_vector_irq(DEFERRED_ERROR_VECTOR),
 			  __ipipe_do_IRQ, smp_deferred_error_interrupt,

Merged, thanks.

Signature · 1 line
Philippe.