[PATCH v2 0/2] Remove remaining __get_unaligned_cpu32
From: Julian Vetter
Date: Thu Oct 29 2026 - 05:22:09 EST
This is the remainder of my series removing the deprecated
__get_unaligned_cpuX() helpers. Patch 1/5 of the previous version was
already applied as commit 50b4233a22b1 ("include/linux/jhash.h: replace
__get_unaligned_cpu32 in jhash function"), so this version only contains
the remaining patches, rebased onto current master.
There are no users of the helpers left in the tree, so patch 1 removes
include/linux/unaligned/packed_struct.h. Patch 2 does the same for the
tools copy.
Signed-off-by: Julian Vetter <julian@xxxxxxxxxxxxxxxx>
---
Changes in v2:
- Drop patch 1/5 -> already applied
- Squash the three tools patches (3/5, 4/5, 5/5) into one
- Include linux/kernel.h explicitly. It was previously pulled in through
packed_struct.h
- Also drop the "#pragma GCC diagnostic" in check-headers.sh. The
pragmas were removed in commit 10a62a0611f5 ("tools headers: Remove
unneeded ignoring of warnings in unaligned.h")
v1 (RESEND): https://lore.kernel.org/lkml/20250707122500.724699-1-julian@xxxxxxxxxxxxxxxx/
---
Julian Vetter (2):
include/linux/unaligned.h: remove deprecated __get_unaligned_cpuX()
helpers
tools/include/linux/jhash.h: replace __get_unaligned_cpu32 in jhash
function
include/linux/unaligned.h | 1 -
include/linux/unaligned/packed_struct.h | 46 ------------------
tools/include/linux/jhash.h | 9 ++--
tools/include/linux/unaligned/packed_struct.h | 47 -------------------
tools/perf/check-headers.sh | 2 +-
5 files changed, 6 insertions(+), 99 deletions(-)
delete mode 100644 include/linux/unaligned/packed_struct.h
delete mode 100644 tools/include/linux/unaligned/packed_struct.h
base-commit: c339f4010dea8b0d754f84ace70cd1b089878ef8
--
2.53.0