asm-generic: use asm-generic/unaligned.h for most architectures
authorArnd Bergmann <arnd@arndb.de>
Fri, 7 May 2021 22:07:46 +0000 (00:07 +0200)
committerArnd Bergmann <arnd@arndb.de>
Mon, 10 May 2021 15:43:15 +0000 (17:43 +0200)
commit637be9183e0475c430fc77162c222bcaab887989
tree2d1f487957cf30a30c120caef555a8f19bd9e260
parent6efb943b8616ec53a5e444193dccf1af9ad627b5
asm-generic: use asm-generic/unaligned.h for most architectures

There are several architectures that just duplicate the contents
of asm-generic/unaligned.h, so change those over to use the
file directly, to make future modifications easier.

The exceptions are:

- arm32 sets HAVE_EFFICIENT_UNALIGNED_ACCESS, but wants the
  unaligned-struct version

- ppc64le disables HAVE_EFFICIENT_UNALIGNED_ACCESS but includes
  the access-ok version

- most m68k also uses the access-ok version without setting
  HAVE_EFFICIENT_UNALIGNED_ACCESS.

- sh4a has a custom inline asm version

- openrisc is the only one using the memmove version that
  generally leads to worse code.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
arch/alpha/include/asm/unaligned.h [deleted file]
arch/ia64/include/asm/unaligned.h [deleted file]
arch/m68k/include/asm/unaligned.h
arch/microblaze/include/asm/unaligned.h [deleted file]
arch/parisc/include/asm/unaligned.h
arch/sparc/include/asm/unaligned.h [deleted file]
arch/x86/include/asm/unaligned.h [deleted file]
arch/xtensa/include/asm/unaligned.h [deleted file]