Re: 2.6.7-mm7

William Lee Irwin III
2004-07-09T22:11:54Z

On Fri, Jul 09, 2004 at 02:04:23PM -0700, William Lee Irwin III wrote:
> In file included from include/asm/sbus.h:10,
> from arch/sparc64/kernel/auxio.c:15:
> include/linux/dma-mapping.h: In function `dma_mark_declared_memory_occupied':
> include/linux/dma-mapping.h:47: warning: implicit declaration of function `ERR_PTR'
> include/linux/dma-mapping.h:47: error: `EBUSY' undeclared (first use in this function)
> include/linux/dma-mapping.h:47: error: (Each undeclared identifier is reported only once
> include/linux/dma-mapping.h:47: error: for each function it appears in.)
> include/linux/dma-mapping.h:47: warning: return makes pointer from integer without a cast

compilefix for sparc64 suggested by hch and jejb:

Index: mm7-2.6.7/include/linux/dma-mapping.h
===================================================================
--- mm7-2.6.7.orig/include/linux/dma-mapping.h 2004-07-09 13:54:32.444030032 -0700
+++ mm7-2.6.7/include/linux/dma-mapping.h 2004-07-09 14:54:05.996767440 -0700
@@ -1,6 +1,8 @@
#ifndef _ASM_LINUX_DMA_MAPPING_H
#define _ASM_LINUX_DMA_MAPPING_H

+#include <linux/err.h>
+
/* These definitions mirror those in pci.h, so they can be used
* interchangeably with their PCI_ counterparts */
enum dma_data_direction {