public inbox for linux-btrfs@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/8] Cleanup unaligned access macros
@ 2023-05-22 12:22 Jens Wiklander
  2023-05-22 12:22 ` [PATCH 1/8] arm: use asm-generic/unaligned.h Jens Wiklander
                   ` (8 more replies)
  0 siblings, 9 replies; 12+ messages in thread
From: Jens Wiklander @ 2023-05-22 12:22 UTC (permalink / raw)
  To: u-boot, linux-btrfs
  Cc: Ilias Apalodimas, Arnd Bergmann, Huan Wang, Angelo Dureghello,
	Daniel Schwierzeck, Wolfgang Denk, Marek Vasut, Nobuhiro Iwamatsu,
	Marek Behun, Qu Wenruo, Tom Rini, Jens Wiklander

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


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2023-05-28 19:01 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-05-22 12:22 [PATCH 0/8] Cleanup unaligned access macros Jens Wiklander
2023-05-22 12:22 ` [PATCH 1/8] arm: use asm-generic/unaligned.h Jens Wiklander
2023-05-22 12:22 ` [PATCH 2/8] sh: " Jens Wiklander
2023-05-22 12:22 ` [PATCH 3/8] mips: " Jens Wiklander
2023-05-22 12:22 ` [PATCH 4/8] m68k: " Jens Wiklander
2023-05-28 18:54   ` Angelo Dureghello
2023-05-22 12:22 ` [PATCH 5/8] powerpc: " Jens Wiklander
2023-05-22 12:22 ` [PATCH 6/8] fs/btrfs: use asm/unaligned.h Jens Wiklander
2023-05-22 12:22 ` [PATCH 7/8] linux/unaligned: remove unused access_ok.h Jens Wiklander
2023-05-22 12:22 ` [PATCH 8/8] asm-generic: simplify unaligned.h Jens Wiklander
2023-05-22 20:34 ` [PATCH 0/8] Cleanup unaligned access macros Ilias Apalodimas
2023-05-23 18:56   ` Tom Rini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox