m68k: select CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS
authorArnd Bergmann <arnd@arndb.de>
Fri, 7 May 2021 22:07:49 +0000 (00:07 +0200)
committerArnd Bergmann <arnd@arndb.de>
Mon, 10 May 2021 15:50:47 +0000 (17:50 +0200)
commit3aec1db05d1ba631311beca4715655591a9e17d5
tree6d850ad7e217a965e0bedd5ece0ba2eb93b35099
parent94528b70781a4c63db9e1309d4cdbcaef2387904
m68k: select CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS

All supported CPUs other than the old dragonball and in theory other 68000
derivatives use the include/linux/unaligned/access_ok.h implementation
for accessing unaligned variables, so presumably this works everywhere.

However, m68k never selects CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS,
so none of the other conditionals in the kernel get the optimized
implementation.

Select this based on CPU_HAS_NO_UNALIGNED to make the two settings
always match, and then use the generic version of the header.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
arch/m68k/Kconfig
arch/m68k/include/asm/unaligned.h [deleted file]