linux-mips
[Top] [All Lists]

PATCH: dma_addr_t 32/64bit mix-up

To: linux-mips@oss.sgi.com
Subject: PATCH: dma_addr_t 32/64bit mix-up
From: Johannes Stezenbach <js@convergence.de>
Date: Tue, 16 Jul 2002 18:03:27 +0200
Mail-followup-to: Johannes Stezenbach <js@convergence.de>, linux-mips@oss.sgi.com
Sender: owner-linux-mips@oss.sgi.com
User-agent: Mutt/1.4i
Hi,

the following patch applies to the linux_2_4 branch.

Index: linux/include/asm-mips/types.h
===================================================================
RCS file: /cvs/linux/include/asm-mips/types.h,v
retrieving revision 1.6.2.4
diff -u -r1.6.2.4 types.h
--- linux/include/asm-mips/types.h      2002/06/26 22:36:37     1.6.2.4
+++ linux/include/asm-mips/types.h      2002/07/16 15:48:06
@@ -72,9 +72,9 @@
 #define BITS_PER_LONG _MIPS_SZLONG
 
 #ifdef CONFIG_64BIT_PHYS_ADDR
-typedef u32 dma_addr_t;
-#else
 typedef u64 dma_addr_t;
+#else
+typedef u32 dma_addr_t;
 #endif
 typedef u64 dma64_addr_t;


Johannes


<Prev in Thread] Current Thread [Next in Thread>