Skip to contentSkip to conversation

x86: fix compiler warning without CONFIG_X86_RESERVE_LOW_64K

PATCH In review Jan Beulich 2 participants 2 messages Dec 16, 2008 x86

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86: fix compiler warning without CONFIG_X86_RESERVE_LOW_64K

---
 arch/x86/kernel/setup.c |    2 ++
 1 file changed, 2 insertions(+)
arch/x86/kernel/setup.c +2 -0
@@ -738,6 +738,7 @@ void start_periodic_check_for_corruption
 }
 #endif
 
+#ifdef CONFIG_X86_RESERVE_LOW_64K
 static int __init dmi_low_memory_corruption(const struct dmi_system_id *d)
 {
 	printk(KERN_NOTICE
@@ -749,6 +750,7 @@ static int __init dmi_low_memory_corrupt
 
 	return 0;
 }
+#endif
 
 /* List of systems that have known low memory corruption BIOS problems */
 static struct dmi_system_id __initdata bad_bios_dmi_table[] = {
#1 lore raw
Quoted 5 lines · Jan Beulich
---
 arch/x86/kernel/setup.c |    2 ++
 1 file changed, 2 insertions(+)

already fixed in the x86 tree:

bb55746: x86: fix arch/x86/kernel/setup.c build warning when !CONFIG_X86_RESERVE_L

about a month ago.

Ingo