Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

wifi: 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.

Signed-off-by: Julian Vetter <julian@outer-limits.org>
Link: https://patch.msgid.link/20250408092220.2267754-1-julian@outer-limits.org
[fix subject]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>

authored by

Julian Vetter and committed by
Johannes Berg
39df75eb 1237c563

+1 -1
+1 -1
net/mac80211/mesh_pathtbl.c
··· 22 22 static u32 mesh_table_hash(const void *addr, u32 len, u32 seed) 23 23 { 24 24 /* Use last four bytes of hw addr as hash index */ 25 - return jhash_1word(__get_unaligned_cpu32((u8 *)addr + 2), seed); 25 + return jhash_1word(get_unaligned((u32 *)((u8 *)addr + 2)), seed); 26 26 } 27 27 28 28 static const struct rhashtable_params mesh_rht_params = {