diff options
author | Richard A. Holden III <aciddeath@gmail.com> | 2008-11-19 18:05:15 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-11-20 03:04:25 -0500 |
commit | bb5574608a8375026510b4f983ffbb06ece33fe2 (patch) | |
tree | e1cea71d885ecc401a742ed54411af75a0631636 /arch/x86/kernel/setup.c | |
parent | 90accd6fabf9b2fa2705945a4c601877a75d43bf (diff) |
x86: fix arch/x86/kernel/setup.c build warning when !CONFIG_X86_RESERVE_LOW_64K
Impact: cleanup
Fix:
arch/x86/kernel/setup.c:592: warning: 'dmi_low_memory_corruption' defined but not used
this is only used if CONFIG_X86_RESERVE_LOW_64K is defined.
Signed-off-by: Richard A. Holden III <aciddeath@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/setup.c')
-rw-r--r-- | arch/x86/kernel/setup.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/kernel/setup.c b/arch/x86/kernel/setup.c index e6c51433247d..13a5f592ac28 100644 --- a/arch/x86/kernel/setup.c +++ b/arch/x86/kernel/setup.c | |||
@@ -587,6 +587,7 @@ static struct x86_quirks default_x86_quirks __initdata; | |||
587 | 587 | ||
588 | struct x86_quirks *x86_quirks __initdata = &default_x86_quirks; | 588 | struct x86_quirks *x86_quirks __initdata = &default_x86_quirks; |
589 | 589 | ||
590 | #ifdef CONFIG_X86_RESERVE_LOW_64K | ||
590 | static int __init dmi_low_memory_corruption(const struct dmi_system_id *d) | 591 | static int __init dmi_low_memory_corruption(const struct dmi_system_id *d) |
591 | { | 592 | { |
592 | printk(KERN_NOTICE | 593 | printk(KERN_NOTICE |
@@ -598,6 +599,7 @@ static int __init dmi_low_memory_corruption(const struct dmi_system_id *d) | |||
598 | 599 | ||
599 | return 0; | 600 | return 0; |
600 | } | 601 | } |
602 | #endif | ||
601 | 603 | ||
602 | /* List of systems that have known low memory corruption BIOS problems */ | 604 | /* List of systems that have known low memory corruption BIOS problems */ |
603 | static struct dmi_system_id __initdata bad_bios_dmi_table[] = { | 605 | static struct dmi_system_id __initdata bad_bios_dmi_table[] = { |