On Wed, 23 Jul 2003 08:02:22 +0100
Christoph Hellwig <[EMAIL PROTECTED]> wrote:

> On Tue, Jul 22, 2003 at 11:57:14PM -0700, David S. Miller wrote:
> > I don't see why this is a problem.  Either do this, or fix
> > asm-generic/dma-mapping.h which is not GENERIC because it
> > depends upon something SPECIFIC, specifically PCI.
> 
> The latter is what need to be done.  

I'll do the following for now.

# This is a BitKeeper generated patch for the following project:
# Project Name: Linux kernel tree
# This patch format is intended for GNU patch command version 2.5 or higher.
# This patch includes the following deltas:
#                  ChangeSet    1.1518  -> 1.1519 
#       include/asm-sparc64/dma-mapping.h       1.1     -> 1.2    
#       include/asm-sparc/dma-mapping.h 1.1     -> 1.2    
#
# The following is the BitKeeper ChangeSet Log
# --------------------------------------------
# 03/07/23      [EMAIL PROTECTED]       1.1519
# [SPARC]: Do not include asm-generic/dma-mapping.h if !CONFIG_PCI.
# --------------------------------------------
#
diff -Nru a/include/asm-sparc/dma-mapping.h b/include/asm-sparc/dma-mapping.h
--- a/include/asm-sparc/dma-mapping.h   Wed Jul 23 00:06:03 2003
+++ b/include/asm-sparc/dma-mapping.h   Wed Jul 23 00:06:03 2003
@@ -1 +1,5 @@
+#include <linux/config.h>
+
+#ifdef CONFIG_PCI
 #include <asm-generic/dma-mapping.h>
+#endif
diff -Nru a/include/asm-sparc64/dma-mapping.h 
b/include/asm-sparc64/dma-mapping.h
--- a/include/asm-sparc64/dma-mapping.h Wed Jul 23 00:06:03 2003
+++ b/include/asm-sparc64/dma-mapping.h Wed Jul 23 00:06:03 2003
@@ -1 +1,5 @@
+#include <linux/config.h>
+
+#ifdef CONFIG_PCI
 #include <asm-generic/dma-mapping.h>
+#endif

Reply via email to