From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Mon, 7 May 2007 12:13:36 +1000 From: David Gibson To: Paul Mackerras Subject: ppc: Fix build problem in ppc4xx_sgdma.c Message-ID: <20070507021336.GJ16165@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: linuxppc-dev@ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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. Signed-off-by: David Gibson Index: working-2.6/arch/ppc/syslib/ppc4xx_sgdma.c =================================================================== --- working-2.6.orig/arch/ppc/syslib/ppc4xx_sgdma.c 2007-05-07 12:04:40.000000000 +1000 +++ working-2.6/arch/ppc/syslib/ppc4xx_sgdma.c 2007-05-07 12:04:47.000000000 +1000 @@ -23,10 +23,10 @@ #include #include #include +#include #include #include -#include #include void -- 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