aboutsummaryrefslogtreecommitdiffstats
path: root/arch/xtensa/include/asm/unaligned.h
diff options
context:
space:
mode:
Diffstat (limited to 'arch/xtensa/include/asm/unaligned.h')
-rw-r--r--arch/xtensa/include/asm/unaligned.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/arch/xtensa/include/asm/unaligned.h b/arch/xtensa/include/asm/unaligned.h
index 8f3424fc5d18..8e7ed046bfed 100644
--- a/arch/xtensa/include/asm/unaligned.h
+++ b/arch/xtensa/include/asm/unaligned.h
@@ -10,20 +10,20 @@
10#ifndef _ASM_XTENSA_UNALIGNED_H 10#ifndef _ASM_XTENSA_UNALIGNED_H
11#define _ASM_XTENSA_UNALIGNED_H 11#define _ASM_XTENSA_UNALIGNED_H
12 12
13#ifdef __XTENSA_EL__ 13#include <asm/byteorder.h>
14# include <linux/unaligned/le_memmove.h> 14
15#ifdef __LITTLE_ENDIAN
16# include <linux/unaligned/le_struct.h>
15# include <linux/unaligned/be_byteshift.h> 17# include <linux/unaligned/be_byteshift.h>
16# include <linux/unaligned/generic.h> 18# include <linux/unaligned/generic.h>
17# define get_unaligned __get_unaligned_le 19# define get_unaligned __get_unaligned_le
18# define put_unaligned __put_unaligned_le 20# define put_unaligned __put_unaligned_le
19#elif defined(__XTENSA_EB__) 21#else
20# include <linux/unaligned/be_memmove.h> 22# include <linux/unaligned/be_struct.h>
21# include <linux/unaligned/le_byteshift.h> 23# include <linux/unaligned/le_byteshift.h>
22# include <linux/unaligned/generic.h> 24# include <linux/unaligned/generic.h>
23# define get_unaligned __get_unaligned_be 25# define get_unaligned __get_unaligned_be
24# define put_unaligned __put_unaligned_be 26# define put_unaligned __put_unaligned_be
25#else
26# error processor byte order undefined!
27#endif 27#endif
28 28
29#endif /* _ASM_XTENSA_UNALIGNED_H */ 29#endif /* _ASM_XTENSA_UNALIGNED_H */