Skip to contentSkip to conversation

replace-__get_unaligned_cpu32-in-jhash-function.patch removed from -mm tree

merged mm-nonmm-stable Andrew Morton 1 participant 1 message Jul 10, 2025

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: include/linux/jhash.h: replace __get_unaligned_cpu32 in jhash function
has been removed from the -mm tree. Its filename was
replace-__get_unaligned_cpu32-in-jhash-function.patch

This patch was dropped because it was merged into the mm-nonmm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

------------------------------------------------------
From: Julian Vetter <[email protected]>
Subject: include/linux/jhash.h: replace __get_unaligned_cpu32 in jhash function
Date: Tue, 3 Jun 2025 15:21:21 +0200

__get_unaligned_cpu32() is deprecated. So, replace it with the more generic get_unaligned() and just cast the input parameter.

---

 include/linux/jhash.h |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
include/linux/jhash.h renamed from include/linux/jhash.h~replace-__get_unaligned_cpu32-in-jhash-function +4 -4
@@ -24,7 +24,7 @@
  * Jozsef
  */
 #include <linux/bitops.h>
-#include <linux/unaligned/packed_struct.h>
+#include <linux/unaligned.h>
 
 /* Best hash sizes are of power of two */
 #define jhash_size(n)   ((u32)1<<(n))
@@ -77,9 +77,9 @@ static inline u32 jhash(const void *key,
 
 	/* All but the last block: affect some 32 bits of (a,b,c) */
 	while (length > 12) {
-		a += __get_unaligned_cpu32(k);
-		b += __get_unaligned_cpu32(k + 4);
-		c += __get_unaligned_cpu32(k + 8);
+		a += get_unaligned((u32 *)k);
+		b += get_unaligned((u32 *)(k + 4));
+		c += get_unaligned((u32 *)(k + 8));
 		__jhash_mix(a, b, c);
 		length -= 12;
 		k += 12;

_

Patches currently in -mm which might be from [email protected] are