[PATCH] Fix unused variable acpi_madt_rev

From: Ian Wienand <ianw_at_gelato.unsw.edu.au>
Date: 2005-07-19 11:31:27
Fix

arch/ia64/kernel/acpi.c:71: warning: 'acpi_madt_rev' defined but not used

when building for the simulator (which has no ACPI) by moving inside
an ACPI ifdef'd area.

--

Signed-Off-By: Ian Wienand <ianw@gelato.unsw.edu.au>

diff --git a/arch/ia64/kernel/acpi.c b/arch/ia64/kernel/acpi.c
--- a/arch/ia64/kernel/acpi.c
+++ b/arch/ia64/kernel/acpi.c
@@ -68,8 +68,6 @@ EXPORT_SYMBOL(pm_power_off);
 unsigned char acpi_kbd_controller_present = 1;
 unsigned char acpi_legacy_devices;
 
-static unsigned int __initdata acpi_madt_rev;
-
 unsigned int acpi_cpei_override;
 unsigned int acpi_cpei_phys_cpuid;
 
@@ -135,6 +133,8 @@ acpi_get_sysname (void)
 
 #define ACPI_MAX_PLATFORM_INTERRUPTS	256
 
+static unsigned int __initdata acpi_madt_rev;
+
 /* Array to record platform interrupt vectors for generic interrupt routing. */
 int platform_intr_list[ACPI_MAX_PLATFORM_INTERRUPTS] = {
 	[0 ... ACPI_MAX_PLATFORM_INTERRUPTS - 1] = -1
-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Mon Jul 18 21:31:33 2005

This archive was generated by hypermail 2.1.8 : 2005-08-02 09:20:40 EST