]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] dmi_scan warning fix
authorAndrew Morton <akpm@osdl.org>
Wed, 20 Aug 2003 17:28:35 +0000 (10:28 -0700)
committerLinus Torvalds <torvalds@home.osdl.org>
Wed, 20 Aug 2003 17:28:35 +0000 (10:28 -0700)
dmi_dump_system() is only used if CONFIG_ACPI_BOOT.

arch/i386/kernel/dmi_scan.c

index 7c5f7f66fa8e77efad834e7cc20f48e00e739403..ef91655c2568b3690eb474bd7c1a99a100c38be1 100644 (file)
@@ -162,6 +162,8 @@ enum
 
 static char *dmi_ident[DMI_STRING_MAX];
 
+#ifdef CONFIG_ACPI_BOOT
+
 /* print some information suitable for a blacklist entry. */
 static void dmi_dump_system(void)
 { 
@@ -176,6 +178,8 @@ static void dmi_dump_system(void)
               dmi_ident[DMI_BOARD_VERSION]); 
 } 
 
+#endif
+
 /*
  *     Save a DMI string
  */