Re: [PATCH] Remove unaligned/packed_struct.h header

From: Julian Vetter
Date: Tue Jun 10 2025 - 05:04:11 EST


On 6/3/25 16:29, Al Viro wrote:
On Tue, Jun 03, 2025 at 03:24:14PM +0200, Julian Vetter wrote:
The functions in this header are deprecated and are not used anymore.
So, remove the header entirely.


Yes, sorry. I messed it up. For now the patch can be ignored. I will re-send it once, all appearances of '__get_unaligned_cpu32' are removed. I have already send according patches for the 2 remaining files that still use it, namely 'include/linux/jhash.h' and 'tools/include/linux/jhash.h'.

Sorry again.

; git grep -n __get_unaligned_cpu32
include/linux/jhash.h:80: a += __get_unaligned_cpu32(k);
include/linux/jhash.h:81: b += __get_unaligned_cpu32(k + 4);
include/linux/jhash.h:82: c += __get_unaligned_cpu32(k + 8);
include/linux/unaligned/packed_struct.h:16:static inline u32 __get_unaligned_cpu32(const void *p)
tools/include/linux/jhash.h:80: a += __get_unaligned_cpu32(k);
tools/include/linux/jhash.h:81: b += __get_unaligned_cpu32(k + 4);
tools/include/linux/jhash.h:82: c += __get_unaligned_cpu32(k + 8);
tools/include/linux/unaligned/packed_struct.h:17:static inline u32 __get_unaligned_cpu32(const void *p)