Skip to contentSkip to conversation

xtensa: Use packed struct rather than memmove for unaligned access

PATCH New Harvey Harrison 1 participant 1 message Jun 24, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 3/3 xtensa: Use packed struct rather than memmove for unaligned access

---
There are only 3 arches that use the memmove implementation, do you see any problems with using the packed struct implementation so the memmove version could be removed?

 include/asm-xtensa/unaligned.h |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
include/asm-xtensa/unaligned.h +2 -2
index 8f3424f..1a242b2 100644
@@ -11,13 +11,13 @@
 #define _ASM_XTENSA_UNALIGNED_H
 
 #ifdef __XTENSA_EL__
-# include <linux/unaligned/le_memmove.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
 #elif defined(__XTENSA_EB__)
-# include <linux/unaligned/be_memmove.h>
+# include <linux/unaligned/be_struct.h>
 # include <linux/unaligned/le_byteshift.h>
 # include <linux/unaligned/generic.h>
 # define get_unaligned	__get_unaligned_be
Signature · 1 line
1.5.6.290.gc4e15