Skip to contentSkip to conversation

ppc: Fix build problem in ppc4xx_sgdma.c

PATCH David Gibson 1 participant 1 message May 7, 2007

lore
Share & tools
lore
#0 lore raw

ppc4xx_sgdma.c is #including asm/dma-mapping.h directly, which should only ever be included via linux/dma-mapping.h. asm/dma-mapping.h relies on an enum defined in linux/dma-mapping.h before its own include. This fixes the problem.

arch/ppc/syslib/ppc4xx_sgdma.c +1 -1
Index: working-2.6/arch/ppc/syslib/ppc4xx_sgdma.c
===================================================================
@@ -23,10 +23,10 @@
 #include <linux/mm.h>
 #include <linux/init.h>
 #include <linux/module.h>
+#include <linux/dma-mapping.h>
 
 #include <asm/system.h>
 #include <asm/io.h>
-#include <asm/dma-mapping.h>
 #include <asm/ppc4xx_dma.h>
 
 void
Signature · 4 lines
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