diff options
-rw-r--r-- | arch/mips/include/asm/mach-cavium-octeon/mangle-port.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/mips/include/asm/mach-cavium-octeon/mangle-port.h b/arch/mips/include/asm/mach-cavium-octeon/mangle-port.h index 0cf5ac1f7245..8ff2cbdf2c3e 100644 --- a/arch/mips/include/asm/mach-cavium-octeon/mangle-port.h +++ b/arch/mips/include/asm/mach-cavium-octeon/mangle-port.h | |||
@@ -15,8 +15,8 @@ | |||
15 | static inline bool __should_swizzle_bits(volatile void *a) | 15 | static inline bool __should_swizzle_bits(volatile void *a) |
16 | { | 16 | { |
17 | extern const bool octeon_should_swizzle_table[]; | 17 | extern const bool octeon_should_swizzle_table[]; |
18 | u64 did = ((u64)(uintptr_t)a >> 40) & 0xff; | ||
18 | 19 | ||
19 | unsigned long did = ((unsigned long)a >> 40) & 0xff; | ||
20 | return octeon_should_swizzle_table[did]; | 20 | return octeon_should_swizzle_table[did]; |
21 | } | 21 | } |
22 | 22 | ||
@@ -29,7 +29,7 @@ static inline bool __should_swizzle_bits(volatile void *a) | |||
29 | 29 | ||
30 | #define __should_swizzle_bits(a) false | 30 | #define __should_swizzle_bits(a) false |
31 | 31 | ||
32 | static inline bool __should_swizzle_addr(unsigned long p) | 32 | static inline bool __should_swizzle_addr(u64 p) |
33 | { | 33 | { |
34 | /* boot bus? */ | 34 | /* boot bus? */ |
35 | return ((p >> 40) & 0xff) == 0; | 35 | return ((p >> 40) & 0xff) == 0; |