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 E5EDFDDE98 for ; Sat, 17 Nov 2007 08:04:41 +1100 (EST) Subject: Re: [PATCH] powerpc: Add xmon function to dump 44x TLB From: Benjamin Herrenschmidt To: Segher Boessenkool In-Reply-To: <5581b33006faf83955d35e9e9a091272@kernel.crashing.org> References: <20071116072415.95082DDDF2@ozlabs.org> <4ccc68f867a65d70f5d1e3ee946de4d1@kernel.crashing.org> <5581b33006faf83955d35e9e9a091272@kernel.crashing.org> Content-Type: text/plain Date: Sat, 17 Nov 2007 08:04:27 +1100 Message-Id: <1195247067.28865.171.camel@pasglop> Mime-Version: 1.0 Cc: linuxppc-dev@ozlabs.org Reply-To: benh@kernel.crashing.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Fri, 2007-11-16 at 17:09 +0100, Segher Boessenkool wrote: > >> +#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 :-) We do have multiplatform support but not accross CPU families :-) Ben.