Skip to contentSkip to conversation

net: mac80211: Replace __get_unaligned_cpu32 in mesh_pathtbl.c

PATCH New Julian Vetter 1 participant 1 message Apr 8, 2025 mac80211

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net: mac80211: Replace __get_unaligned_cpu32 in mesh_pathtbl.c

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

---
 net/mac80211/mesh_pathtbl.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
net/mac80211/mesh_pathtbl.c +1 -1
index 9f9cb5af0a97..0319674be832 100644
@@ -22,7 +22,7 @@ static void mesh_path_free_rcu(struct mesh_table *tbl, struct mesh_path *mpath);
 static u32 mesh_table_hash(const void *addr, u32 len, u32 seed)
 {
 	/* Use last four bytes of hw addr as hash index */
-	return jhash_1word(__get_unaligned_cpu32((u8 *)addr + 2), seed);
+	return jhash_1word(get_unaligned((u32 *)((u8 *)addr + 2)), seed);
 }
 
 static const struct rhashtable_params mesh_rht_params = {
Signature · 1 line
2.34.1