PATCH: dma_addr_t 32/64bit mix-up
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
@@ -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
Quoted 1 line · Johannes Stezenbach
the following patch applies to the
linux_2_4branch.
Thanks for noticing. The fix isn't entirely right, the condition should be defined(CONFIG_HIGHMEM) && defined(CONFIG_64BIT_PHYS_ADDR).
Ralf