1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _ASM_POWERPC_UNALIGNED_H
3 #define _ASM_POWERPC_UNALIGNED_H
8 * The PowerPC can do unaligned accesses itself based on its endian mode.
10 #include <linux/unaligned/access_ok.h>
11 #include <linux/unaligned/generic.h>
13 #ifdef __LITTLE_ENDIAN__
14 #define get_unaligned __get_unaligned_le
15 #define put_unaligned __put_unaligned_le
17 #define get_unaligned __get_unaligned_be
18 #define put_unaligned __put_unaligned_be
21 #endif /* __KERNEL__ */
22 #endif /* _ASM_POWERPC_UNALIGNED_H */