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 D02A8DDE25 for ; Tue, 6 Feb 2007 07:18:41 +1100 (EST) Subject: Re: [PATCH] Missing ifndef __ASSEMBLY__ in include/asm-powerpc/dcr.h From: Benjamin Herrenschmidt To: Mathieu Desnoyers In-Reply-To: <20070205193310.GA12412@Krystal> References: <20070205193310.GA12412@Krystal> Content-Type: text/plain Date: Tue, 06 Feb 2007 07:18:35 +1100 Message-Id: <1170706715.2620.126.camel@localhost.localdomain> Mime-Version: 1.0 Cc: linuxppc-dev@ozlabs.org, paulus@samba.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Mon, 2007-02-05 at 14:33 -0500, Mathieu Desnoyers wrote: > Missing ifndef __ASSEMBLY__ in include/asm-powerpc/dcr.h > > A missing structure forward declaration causes a lot of warnings when > compiling for a powerpc 405. Because this header is used for assembly > too, the declaration must be put within #ifndef __ASSEMBLY__, as should > be the function prototypes. > > This patch applies on 2.6.20. > > Signed-off-by: Mathieu Desnoyers Out of curiosity, are you working on 405 support for arch/powerpc ? Ben. > --- a/include/asm-powerpc/dcr.h > +++ b/include/asm-powerpc/dcr.h > @@ -33,10 +33,13 @@ > * base from the device-tree > */ > #ifdef CONFIG_PPC_MERGE > +#ifndef __ASSEMBLY__ > +struct device_node; > extern unsigned int dcr_resource_start(struct device_node *np, > unsigned int index); > extern unsigned int dcr_resource_len(struct device_node *np, > unsigned int index); > +#endif > #endif /* CONFIG_PPC_MERGE */ > > #endif /* CONFIG_PPC_DCR */