projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1237c56
)
wifi: mac80211: Replace __get_unaligned_cpu32 in mesh_pathtbl.c
author
Julian Vetter
<julian@outer-limits.org>
Tue, 8 Apr 2025 09:22:20 +0000
(11:22 +0200)
committer
Johannes Berg
<johannes.berg@intel.com>
Wed, 23 Apr 2025 13:28:50 +0000
(15:28 +0200)
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>
net/mac80211/mesh_pathtbl.c
patch
|
blob
|
history
diff --git
a/net/mac80211/mesh_pathtbl.c
b/net/mac80211/mesh_pathtbl.c
index
9f9cb5a
..
0319674
100644
(file)
--- a/
net/mac80211/mesh_pathtbl.c
+++ b/
net/mac80211/mesh_pathtbl.c
@@
-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 = {