Skip to contentSkip to conversation

PATCH: dma_addr_t 32/64bit mix-up

PATCH Johannes Stezenbach 2 participants 2 messages Jul 16, 2002 – Jul 17, 2002 MIPS

lore
Share & tools
lore
#0 lore raw

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

include/asm-mips/types.h +2 -2
diff -u -r1.6.2.4 types.h
@@ -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

#1 lore raw
Quoted 1 line · Johannes Stezenbach

the following patch applies to the linux_2_4 branch.

Thanks for noticing. The fix isn't entirely right, the condition should be defined(CONFIG_HIGHMEM) && defined(CONFIG_64BIT_PHYS_ADDR).

Ralf