Re: Build error : 2.6.21-rc6-mm1 for ppc 405

Andrew Morton
2007-04-11T01:12:30Z

On Tue, 10 Apr 2007 20:50:42 -0400
Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca> wrote:

> Hi Andrew,
>
> I get the following build error when building 2.6.21-rc6-mm1 for ppc
> 405:
>
>
> /home/compudj/git/linux-2.6-lttng/arch/ppc/syslib/ppc4xx_sgdma.c: In function 'ppc4xx_alloc_dma_handle':
> /home/compudj/git/linux-2.6-lttng/arch/ppc/syslib/ppc4xx_sgdma.c:374: warning: implicit declaration of function 'dma_alloc_coherent'

gregkh-pci-pci-cleanup-the-includes-of-linux-pcih.patch removes the pci.h
include, which presumably is what broke this. Appropriate fix is to
include dma-mapping.h in ppc4xx_sgdma.c. I queued a fix.

> /home/compudj/git/linux-2.6-lttng/arch/powerpc/sysdev/dcr.c:37: warning: 'struct device_node' declared inside parameter list

Srinivasa Ds <srinivasa@in.ibm.com> sent a fix for this today.