Commit f15d411ad9986185303b556e0f5e7acafc4ef223

Authored by Harvey Harrison
Committed by Linus Torvalds
1 parent 231cc432f4

m32r: introduce asm/swab.h

Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

Showing 3 changed files with 12 additions and 6 deletions Inline Diff

include/asm-m32r/Kbuild
1 include include/asm-generic/Kbuild.asm 1 include include/asm-generic/Kbuild.asm
2 unifdef-y += swab.h
2 3
include/asm-m32r/byteorder.h
1 #ifndef _ASM_M32R_BYTEORDER_H 1 #ifndef _ASM_M32R_BYTEORDER_H
2 #define _ASM_M32R_BYTEORDER_H 2 #define _ASM_M32R_BYTEORDER_H
3 3
4 #include <asm/types.h> 4 #include <asm/swab.h>
5
6 #if !defined(__STRICT_ANSI__) || defined(__KERNEL__)
7 # define __BYTEORDER_HAS_U64__
8 # define __SWAB_64_THRU_32__
9 #endif
10 5
11 #if defined(__LITTLE_ENDIAN__) 6 #if defined(__LITTLE_ENDIAN__)
12 # include <linux/byteorder/little_endian.h> 7 # include <linux/byteorder/little_endian.h>
13 #else 8 #else
14 # include <linux/byteorder/big_endian.h> 9 # include <linux/byteorder/big_endian.h>
15 #endif 10 #endif
16 11
17 #endif /* _ASM_M32R_BYTEORDER_H */ 12 #endif /* _ASM_M32R_BYTEORDER_H */
18 13
include/asm-m32r/swab.h
File was created 1 #ifndef _ASM_M32R_SWAB_H
2 #define _ASM_M32R_SWAB_H
3
4 #include <asm/types.h>
5
6 #if !defined(__STRICT_ANSI__) || defined(__KERNEL__)
7 # define __SWAB_64_THRU_32__
8 #endif
9
10 #endif /* _ASM_M32R_SWAB_H */
11