Skip to contentSkip to conversation

dma_get_required_mask() breaks sparc64

DISCUSSION David Dillow 2 participants 2 messages Jul 1, 2004

lore
Share & tools
lore
#0 lore raw

Building with the latest BK (as of 2200 EST) breaks sparc64 builds. This may be related to the fact that I only enable SBUS and not PCI, but I think it is more general.

The attached patch (untested, but compiling) seems to fix the issue, though it may not be the proper place to add the include.

Dave

In file included from include/asm/sbus.h:10,

                 from include/asm/dma.h:15,
                 from include/linux/bootmem.h:8,
                 from init/main.c:30:

include/linux/dma-mapping.h: In function `dma_get_required_mask':
include/linux/dma-mapping.h:41: error: dereferencing pointer to incomplete type

=== sbus.h 1.5 vs edited ==--- 1.5/include/asm-sparc64/sbus.h 2004-06-02 19:00:47 -04:00
+++ edited/include/asm-sparc64/sbus.h 2004-06-30 23:53:49 -04:00
@@ -7,6 +7,7 @@
#ifndef _SPARC64_SBUS_H
#define _SPARC64_SBUS_H

+#include <linux/device.h>
#include <linux/dma-mapping.h>
#include <linux/ioport.h>

#1 lore raw
Quoted 6 lines · On 01 Jul 2004 00:15:33 -0400 David Dillow <[email protected]> wrote:

Building with the latest BK (as of 2200 EST) breaks sparc64 builds. This may be related to the fact that I only enable SBUS and not PCI, but I think it is more general.

The attached patch (untested, but compiling) seems to fix the issue, though it may not be the proper place to add the include.

Thanks for the report, I'll take a look at this.