sh: Convert to asm-generic/unaligned.h.
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
This commit is contained in:
@@ -6,19 +6,7 @@
|
|||||||
#include <asm/unaligned-sh4a.h>
|
#include <asm/unaligned-sh4a.h>
|
||||||
#else
|
#else
|
||||||
/* Otherwise, SH can't handle unaligned accesses. */
|
/* Otherwise, SH can't handle unaligned accesses. */
|
||||||
#ifdef __LITTLE_ENDIAN__
|
#include <asm-generic/unaligned.h>
|
||||||
# include <linux/unaligned/le_struct.h>
|
|
||||||
# include <linux/unaligned/be_byteshift.h>
|
|
||||||
# include <linux/unaligned/generic.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>
|
|
||||||
# include <linux/unaligned/generic.h>
|
|
||||||
# define get_unaligned __get_unaligned_be
|
|
||||||
# define put_unaligned __put_unaligned_be
|
|
||||||
#endif
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#endif /* _ASM_SH_UNALIGNED_H */
|
#endif /* _ASM_SH_UNALIGNED_H */
|
||||||
|
Reference in New Issue
Block a user