lkml.org 
[lkml]   [2005]   [Dec]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] idle.c fix unused var compile warning
This fixes a little warning about unused cpu variable for non SMP PPC systems.

Signed-off-by: Clemens Koller <clemens.koller@anagramm.de>
--
--- linux-2.6/arch/ppc/kernel/idle.c.ori 2005-12-14 12:27:26.000000000 +0100
+++ linux-2.6/arch/ppc/kernel/idle.c 2005-12-16 16:02:18.000000000 +0100
@@ -37,7 +37,9 @@
void default_idle(void)
{
void (*powersave)(void);
+#ifdef CONFIG_SMP
int cpu = smp_processor_id();
+#endif

powersave = ppc_md.power_save;
\
 
 \ /
  Last update: 2005-12-16 16:14    [from the cache]
©2003-2011 Jasper Spaans