Merge tag 'locks-v3.16-2' of git://git.samba.org/jlayton/linux
[linux/fpc-iii.git] / arch / powerpc / include / asm / unaligned.h
blob8296381ae43294e679976f6a82d3bb936d64921f
1 #ifndef _ASM_POWERPC_UNALIGNED_H
2 #define _ASM_POWERPC_UNALIGNED_H
4 #ifdef __KERNEL__
6 /*
7 * The PowerPC can do unaligned accesses itself based on its endian mode.
8 */
9 #include <linux/unaligned/access_ok.h>
10 #include <linux/unaligned/generic.h>
12 #ifdef __LITTLE_ENDIAN__
13 #define get_unaligned __get_unaligned_le
14 #define put_unaligned __put_unaligned_le
15 #else
16 #define get_unaligned __get_unaligned_be
17 #define put_unaligned __put_unaligned_be
18 #endif
20 #endif /* __KERNEL__ */
21 #endif /* _ASM_POWERPC_UNALIGNED_H */