[PATCH 0/8] Cleanup unaligned access macros
Jens Wiklander
jens.wiklander at linaro.org
Mon May 22 14:22:30 CEST 2023
Hi,
There are two versions of get/set_unaligned, get_unaligned_be64,
put_unaligned_le64 etc in U-Boot causing confusion (and bugs).
In this patch-set, I'm trying to fix that with a single unified version of
the access macros to be used across all archs. This work is inspired by
similar changes in this Linux kernel by Arnd Bergman,
https://lore.kernel.org/lkml/20210514100106.3404011-1-arnd@kernel.org/
Thanks,
Jens
Jens Wiklander (8):
arm: use asm-generic/unaligned.h
sh: use asm-generic/unaligned.h
mips: use asm-generic/unaligned.h
m68k: use asm-generic/unaligned.h
powerpc: use asm-generic/unaligned.h
fs/btrfs: use asm/unaligned.h
linux/unaligned: remove unused access_ok.h
asm-generic: simplify unaligned.h
arch/arm/include/asm/unaligned.h | 21 +------
arch/m68k/include/asm/unaligned.h | 17 +-----
arch/mips/include/asm/unaligned.h | 23 +------
arch/powerpc/include/asm/unaligned.h | 18 +-----
arch/sh/include/asm/unaligned.h | 22 +------
fs/btrfs/crypto/hash.c | 2 +-
include/asm-generic/unaligned.h | 89 +++++++++++++++++++++++-----
include/linux/unaligned/access_ok.h | 66 ---------------------
8 files changed, 83 insertions(+), 175 deletions(-)
delete mode 100644 include/linux/unaligned/access_ok.h
--
2.34.1
More information about the U-Boot
mailing list