Commit 60114977 authored by Michal Simek's avatar Michal Simek

microblaze: Fix unaligned.h for endians

Synchronized with mips unaligned.h.
Signed-off-by: default avatarMichal Simek <monstr@monstr.eu>
parent c06b3a06
...@@ -12,18 +12,19 @@ ...@@ -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 */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment