mirror of https://gitee.com/openkylin/linux.git
microblaze: Fix unaligned.h for endians
Synchronized with mips unaligned.h. Signed-off-by: Michal Simek <monstr@monstr.eu>
This commit is contained in:
parent
c06b3a0682
commit
6011497751
|
@ -12,18 +12,19 @@
|
||||||
|
|
||||||
# ifdef __KERNEL__
|
# ifdef __KERNEL__
|
||||||
|
|
||||||
# include <linux/unaligned/be_byteshift.h>
|
|
||||||
# include <linux/unaligned/le_byteshift.h>
|
|
||||||
# include <linux/unaligned/generic.h>
|
|
||||||
|
|
||||||
|
|
||||||
# ifdef __MICROBLAZEEL__
|
# ifdef __MICROBLAZEEL__
|
||||||
|
# include <linux/unaligned/le_struct.h>
|
||||||
|
# include <linux/unaligned/be_byteshift.h>
|
||||||
# define get_unaligned __get_unaligned_le
|
# define get_unaligned __get_unaligned_le
|
||||||
# define put_unaligned __put_unaligned_le
|
# define put_unaligned __put_unaligned_le
|
||||||
# else
|
# else
|
||||||
|
# include <linux/unaligned/be_struct.h>
|
||||||
|
# include <linux/unaligned/le_byteshift.h>
|
||||||
# define get_unaligned __get_unaligned_be
|
# define get_unaligned __get_unaligned_be
|
||||||
# define put_unaligned __put_unaligned_be
|
# define put_unaligned __put_unaligned_be
|
||||||
# endif
|
# endif
|
||||||
|
|
||||||
|
# include <linux/unaligned/generic.h>
|
||||||
|
|
||||||
# endif /* __KERNEL__ */
|
# endif /* __KERNEL__ */
|
||||||
#endif /* _ASM_MICROBLAZE_UNALIGNED_H */
|
#endif /* _ASM_MICROBLAZE_UNALIGNED_H */
|
||||||
|
|
Loading…
Reference in New Issue