x86: fix compiler warnings in arch/x86/kernel/early-quirks.c
authorJeff Garzik <jgarzik@redhat.com>
Sat, 27 Oct 2007 18:57:43 +0000 (20:57 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Sat, 27 Oct 2007 18:57:43 +0000 (20:57 +0200)
fix this warning:

arch/x86/kernel/early-quirks.c:40: warning: nvidia_hpet_check defined but not used

Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/kernel/early-quirks.c

index dc34acbd54aafd1710808e422eea853edaba1531..639e6320518ef4b1cd098fca8bdf5f928ed7e1ce 100644 (file)
@@ -35,12 +35,14 @@ static void __init via_bugs(void)
 }
 
 #ifdef CONFIG_ACPI
+#ifdef CONFIG_X86_IO_APIC
 
 static int __init nvidia_hpet_check(struct acpi_table_header *header)
 {
        return 0;
 }
-#endif
+#endif /* CONFIG_X86_IO_APIC */
+#endif /* CONFIG_ACPI */
 
 static void __init nvidia_bugs(void)
 {