From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from thorn.pobox.com (api.pobox.com [208.210.124.75]) by ozlabs.org (Postfix) with ESMTP id 4356A68864 for ; Sun, 4 Dec 2005 06:24:22 +1100 (EST) Date: Sat, 3 Dec 2005 14:00:27 -0500 From: Nathan Lynch To: Otavio Salvador Message-ID: <20051203190026.GA29537@localhost.localdomain> References: <11336348593561-git-send-email-otavio@debian.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <11336348593561-git-send-email-otavio@debian.org> Cc: akpm@osdl.org, linuxppc-dev@ozlabs.org Subject: Re: [PATCH] arch/ppc/kernel/idle.c: don't declare cpu variable in non-SMP kernels List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , > diff --git a/arch/ppc/kernel/idle.c b/arch/ppc/kernel/idle.c > index 821a75e..b23a979 100644 > --- a/arch/ppc/kernel/idle.c > +++ b/arch/ppc/kernel/idle.c > @@ -37,7 +37,9 @@ > void default_idle(void) > { > void (*powersave)(void); > +#ifdef CONFIG_SMP > int cpu = smp_processor_id(); > +#endif Better to just move the declaration of cpu down to the ifdef'd else block further down in the function as that's the only place it is used.