sparc: use the new byteorder headers

Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by Harvey Harrison and committed by David S. Miller 398cf93a 12a9ee3c

+8 -14
+8 -14
arch/sparc/include/asm/byteorder.h
··· 4 #include <asm/types.h> 5 #include <asm/asi.h> 6 7 - #ifdef __GNUC__ 8 9 #ifdef CONFIG_SPARC32 10 #define __SWAB_64_THRU_32__ 11 #endif 12 13 #ifdef CONFIG_SPARC64 14 - 15 - static inline __u16 ___arch__swab16p(const __u16 *addr) 16 { 17 __u16 ret; 18 ··· 20 : "r" (addr), "i" (ASI_PL)); 21 return ret; 22 } 23 24 - static inline __u32 ___arch__swab32p(const __u32 *addr) 25 { 26 __u32 ret; 27 ··· 31 : "r" (addr), "i" (ASI_PL)); 32 return ret; 33 } 34 35 - static inline __u64 ___arch__swab64p(const __u64 *addr) 36 { 37 __u64 ret; 38 ··· 42 : "r" (addr), "i" (ASI_PL)); 43 return ret; 44 } 45 - 46 - #define __arch__swab16p(x) ___arch__swab16p(x) 47 - #define __arch__swab32p(x) ___arch__swab32p(x) 48 - #define __arch__swab64p(x) ___arch__swab64p(x) 49 50 #endif /* CONFIG_SPARC64 */ 51 52 - #define __BYTEORDER_HAS_U64__ 53 - 54 - #endif 55 - 56 - #include <linux/byteorder/big_endian.h> 57 58 #endif /* _SPARC_BYTEORDER_H */
··· 4 #include <asm/types.h> 5 #include <asm/asi.h> 6 7 + #define __BIG_ENDIAN 8 9 #ifdef CONFIG_SPARC32 10 #define __SWAB_64_THRU_32__ 11 #endif 12 13 #ifdef CONFIG_SPARC64 14 + static inline __u16 __arch_swab16p(const __u16 *addr) 15 { 16 __u16 ret; 17 ··· 21 : "r" (addr), "i" (ASI_PL)); 22 return ret; 23 } 24 + #define __arch_swab16p __arch_swab16p 25 26 + static inline __u32 __arch_swab32p(const __u32 *addr) 27 { 28 __u32 ret; 29 ··· 31 : "r" (addr), "i" (ASI_PL)); 32 return ret; 33 } 34 + #define __arch_swab32p __arch_swab32p 35 36 + static inline __u64 __arch_swab64p(const __u64 *addr) 37 { 38 __u64 ret; 39 ··· 41 : "r" (addr), "i" (ASI_PL)); 42 return ret; 43 } 44 + #define __arch_swab64p __arch_swab64p 45 46 #endif /* CONFIG_SPARC64 */ 47 48 + #include <linux/byteorder.h> 49 50 #endif /* _SPARC_BYTEORDER_H */