mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-11 16:29:05 +00:00
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__
|
||||
|
||||
# include <linux/unaligned/be_byteshift.h>
|
||||
# include <linux/unaligned/le_byteshift.h>
|
||||
# include <linux/unaligned/generic.h>
|
||||
|
||||
|
||||
# ifdef __MICROBLAZEEL__
|
||||
# include <linux/unaligned/le_struct.h>
|
||||
# include <linux/unaligned/be_byteshift.h>
|
||||
# define get_unaligned __get_unaligned_le
|
||||
# define put_unaligned __put_unaligned_le
|
||||
# else
|
||||
# include <linux/unaligned/be_struct.h>
|
||||
# include <linux/unaligned/le_byteshift.h>
|
||||
# define get_unaligned __get_unaligned_be
|
||||
# define put_unaligned __put_unaligned_be
|
||||
# endif
|
||||
|
||||
# include <linux/unaligned/generic.h>
|
||||
|
||||
# endif /* __KERNEL__ */
|
||||
#endif /* _ASM_MICROBLAZE_UNALIGNED_H */
|
||||
|
Loading…
x
Reference in New Issue
Block a user