Thread (4 messages) flat view 4 messages, 3 authors, 2007-02-05

Re: [PATCH] Missing ifndef __ASSEMBLY__ in include/asm-powerpc/dcr.h

From: David Gibson <hidden>
Date: 2007-02-05 23:56:39

On Mon, Feb 05, 2007 at 02:33:10PM -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.
This is the wrong fix.  The arch/powerpc version of dcr.h, unlike the
arch/ppc version, should never be included in assembler.

-- 
David Gibson			| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au	| minimalist, thank you.  NOT _the_ _other_
				| _way_ _around_!
http://www.ozlabs.org/~dgibson
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help