Skip to content

Commit

Permalink
xtensa: switch to packed struct unaligned access implementation
Browse files Browse the repository at this point in the history
Rely on byteorder.h checking for endianness.

Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: Chris Zankel <chris@zankel.net>
  • Loading branch information
Harvey Harrison authored and Chris Zankel committed Nov 11, 2008
1 parent 8fa5723 commit 91a1502
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions arch/xtensa/include/asm/unaligned.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,20 @@
#ifndef _ASM_XTENSA_UNALIGNED_H
#define _ASM_XTENSA_UNALIGNED_H

#ifdef __XTENSA_EL__
# include <linux/unaligned/le_memmove.h>
#include <asm/byteorder.h>

#ifdef __LITTLE_ENDIAN
# 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
#elif defined(__XTENSA_EB__)
# include <linux/unaligned/be_memmove.h>
#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
#else
# error processor byte order undefined!
#endif

#endif /* _ASM_XTENSA_UNALIGNED_H */

0 comments on commit 91a1502

Please sign in to comment.