OSDN Git Service

x86 would not build without CONFIG_VT
authorWilly Tarreau <w@1wt.eu>
Sun, 7 Sep 2008 10:37:51 +0000 (12:37 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 22 Sep 2008 04:28:27 +0000 (06:28 +0200)
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@1wt.eu>
arch/i386/kernel/dmi_scan.c

index 07c6d94..9c27ca2 100644 (file)
@@ -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
        /*