x86 would not build without CONFIG_VT

From: Willy Tarreau
Date: Sun Sep 07 2008 - 06:37:51 EST


I've been using this patch for a while without noticing it never
went into mainline. It is required to build i386 without CONFIG_VT.

Signed-off-by: Willy Tarreau <w@xxxxxx>
---
arch/i386/kernel/dmi_scan.c | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/arch/i386/kernel/dmi_scan.c b/arch/i386/kernel/dmi_scan.c
index 07c6d94..9c27ca2 100644
--- a/arch/i386/kernel/dmi_scan.c
+++ b/arch/i386/kernel/dmi_scan.c
@@ -524,6 +524,7 @@ static __init int disable_acpi_pci(struct dmi_blacklist *d)
*/


+#ifdef CONFIG_VT
/* IBM bladeservers have a USB console switch. The keyboard type is USB
* and the hardware does not have a console keyboard. We disable the
* console keyboard so the kernel does not try to initialize one and
@@ -538,6 +539,7 @@ static __init int disable_console_keyboard(struct dmi_blacklist *d)
keyboard_controller_present = 0;
return 0;
}
+#endif

/*
* This will be expanded over time to force things like the APM
@@ -825,7 +827,8 @@ static __initdata struct dmi_blacklist dmi_blacklist[]={
MATCH(DMI_SYS_VENDOR, "IBM"),
NO_MATCH, NO_MATCH, NO_MATCH
} },
- /*
+#ifdef CONFIG_VT
+ /*
* IBM Bladeservers
*/

@@ -834,6 +837,7 @@ static __initdata struct dmi_blacklist dmi_blacklist[]={
MATCH(DMI_BOARD_NAME, "Server Blade"),
NO_MATCH, NO_MATCH
} },
+#endif

#ifdef CONFIG_ACPI_BOOT
/*
--
1.5.3.3

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