x86, acpi: cleanup, temp_stack is used only when CONFIG_SMP is set
authorMarcin Slusarz <marcin.slusarz@gmail.com>
Sun, 3 Aug 2008 17:25:48 +0000 (19:25 +0200)
committerIngo Molnar <mingo@elte.hu>
Fri, 15 Aug 2008 14:41:21 +0000 (16:41 +0200)
fix:

  arch/x86/kernel/acpi/sleep.c:24: warning: 'temp_stack' defined but not used

[ Sven Wegener <sven.wegener@stealer.net>: fix build bug ]

Signed-off-by: Marcin Slusarz <marcin.slusarz@gmail.com>
Acked-by: Pavel Machek <pavel@suse.cz>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/acpi/sleep.c

index fa2161d5003b78ad6e7b021523efd7b761894602..81e5ab6542d8e454f315b8c24426e5ec74058756 100644 (file)
@@ -20,7 +20,7 @@ unsigned long acpi_realmode_flags;
 /* address in low memory of the wakeup routine. */
 static unsigned long acpi_realmode;
 
-#ifdef CONFIG_64BIT
+#if defined(CONFIG_SMP) && defined(CONFIG_64BIT)
 static char temp_stack[10240];
 #endif