Hi Arnd, On Sat, May 8, 2021 at 12:09 AM Arnd Bergmann <arnd@xxxxxxxxxx> wrote: > From: Arnd Bergmann <arnd@xxxxxxxx> > > 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 > > - m68k (non-dragonball) also uses the access-ok version without > setting HAVE_EFFICIENT_UNALIGNED_ACCESS. This not only applies to dragonball, which has the CPU32 core, but also to plain 68000, and any SoCs including the 68EC000 core. It also applies to early Coldfire, but AFAIK Linux doesn't support these (see dfe1d26d4a90287e ("m68knommu: Allow ColdFire CPUs to use unaligned accesses")). > - 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@xxxxxxxx> > arch/m68k/include/asm/unaligned.h | 9 +------- Reviewed-by: Geert Uytterhoeven <geert@xxxxxxxxxxxxxx> Acked-by: Geert Uytterhoeven <geert@xxxxxxxxxxxxxx> Gr{oetje,eeting}s, Geert -- Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@xxxxxxxxxxxxxx In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds