Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

FRV: Switch unaligned access to the packed-struct implementation

Switch unaligned access to the packed-struct implementation for BE accesses as
this reduces the size of the kernel a little. LE still uses the byte shift.

Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Harvey Harrison and committed by
Linus Torvalds
cb76d5a4 c9af956c

+1 -1
+1 -1
include/asm-frv/unaligned.h
··· 13 13 #define _ASM_UNALIGNED_H 14 14 15 15 #include <linux/unaligned/le_byteshift.h> 16 - #include <linux/unaligned/be_byteshift.h> 16 + #include <linux/unaligned/be_struct.h> 17 17 #include <linux/unaligned/generic.h> 18 18 19 19 #define get_unaligned __get_unaligned_be