From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate.crashing.org (gate.crashing.org [63.228.1.57]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTP id D7BFADDE00 for ; Sat, 17 Nov 2007 03:09:38 +1100 (EST) In-Reply-To: <4ccc68f867a65d70f5d1e3ee946de4d1@kernel.crashing.org> References: <20071116072415.95082DDDF2@ozlabs.org> <4ccc68f867a65d70f5d1e3ee946de4d1@kernel.crashing.org> Mime-Version: 1.0 (Apple Message framework v623) Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <5581b33006faf83955d35e9e9a091272@kernel.crashing.org> From: Segher Boessenkool Subject: Re: [PATCH] powerpc: Add xmon function to dump 44x TLB Date: Fri, 16 Nov 2007 17:09:31 +0100 To: Segher Boessenkool Cc: linuxppc-dev@ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , >> +#ifdef CONFIG_44x >> +static void dump_tlb_44x(void); >> +#endif > > No need to #ifdef this... > >> +#ifdef CONFIG_44x >> +static void dump_tlb_44x(void) >> +{ > > ...or this. Erm actually, that last one would give you a compiler warning ("function defined but not used"), unless you convert the point where it is used to a plain "if" too -- probably not worth it until we have 32-bit multiplatform support :-) Segher