kernel: Move arches to use common unaligned access
authorHarvey Harrison <harvey.harrison@gmail.com>
Tue, 29 Apr 2008 08:03:30 +0000 (01:03 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 29 Apr 2008 15:06:27 +0000 (08:06 -0700)
commit6510d41954dc6a9c8b1dbca7eaca0f23195ca727
tree868b5fac25c7c5b80cc5a88eaaab8bf3d693420d
parent064106a91be5e76cb42c1ddf5d3871e3a1bd2a23
kernel: Move arches to use common unaligned access

Unaligned access is ok for the following arches:
cris, m68k, mn10300, powerpc, s390, x86

Arches that use the memmove implementation for native endian, and
the byteshifting for the opposite endianness.
h8300, m32r, xtensa

Packed struct for native endian, byteshifting for other endian:
alpha, blackfin, ia64, parisc, sparc, sparc64, mips, sh

m86knommu is generic_be for Coldfire, otherwise unaligned access is ok.

frv, arm chooses endianness based on compiler settings, uses the byteshifting
versions.  Remove the unaligned trap handler from frv as it is now unused.

v850 is le, uses the byteshifting versions for both be and le.

Remove the now unused asm-generic implementation.

Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Acked-by: David S. Miller <davem@davemloft.net>
Cc: <linux-arch@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
26 files changed:
arch/frv/kernel/traps.c
arch/frv/mm/unaligned.c [deleted file]
include/asm-alpha/unaligned.h
include/asm-arm/unaligned.h
include/asm-avr32/unaligned.h
include/asm-blackfin/unaligned.h
include/asm-cris/unaligned.h
include/asm-frv/unaligned.h
include/asm-generic/unaligned.h [deleted file]
include/asm-h8300/unaligned.h
include/asm-ia64/unaligned.h
include/asm-m32r/unaligned.h
include/asm-m68k/unaligned.h
include/asm-m68knommu/unaligned.h
include/asm-mips/unaligned.h
include/asm-mn10300/unaligned.h
include/asm-parisc/unaligned.h
include/asm-powerpc/unaligned.h
include/asm-s390/unaligned.h
include/asm-sh/unaligned.h
include/asm-sparc/unaligned.h
include/asm-sparc64/unaligned.h
include/asm-um/unaligned.h
include/asm-v850/unaligned.h
include/asm-x86/unaligned.h
include/asm-xtensa/unaligned.h