• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _ASM_M68K_UNALIGNED_H
3 #define _ASM_M68K_UNALIGNED_H
4 
5 
6 #ifdef CONFIG_CPU_HAS_NO_UNALIGNED
7 #include <linux/unaligned/be_struct.h>
8 #include <linux/unaligned/le_byteshift.h>
9 #include <linux/unaligned/generic.h>
10 
11 #define get_unaligned	__get_unaligned_be
12 #define put_unaligned	__put_unaligned_be
13 
14 #else
15 /*
16  * The m68k can do unaligned accesses itself.
17  */
18 #include <linux/unaligned/access_ok.h>
19 #include <linux/unaligned/generic.h>
20 
21 #define get_unaligned	__get_unaligned_be
22 #define put_unaligned	__put_unaligned_be
23 
24 #endif
25 
26 #endif /* _ASM_M68K_UNALIGNED_H */
27