net: remove __get_unaligned_cpu32 from macvlan driver
Subsystems (2)
PATCH 1/1 net: remove __get_unaligned_cpu32 from macvlan driver
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 <[email protected]>
--- drivers/net/macvlan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/macvlan.c +1 -1
@@ -254,7 +254,7 @@ static u32 macvlan_hash_mix(const struct macvlan_dev *vlan)static unsigned int mc_hash (const struct macvlan_dev *vlan,const unsigned char *addr) { -u32 val =__get_unaligned_cpu32 (addr +2 ); +u32 val =get_unaligned ((u32 *)(addr +2 )); val ^=macvlan_hash_mix (vlan);return hash_32 (val,MACVLAN_MC_FILTER_BITS );
Signature · 1 line
2.34.1
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Hello:
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Quoted 7 lines · On Tue, 8 Apr 2025 11:15:48 +0200 you wrote:
The
__get_unaligned_cpu32function is deprecated. So, replace it with the more genericget_unalignedand just cast the input parameter.Signed-off-by Julian Vetter <[email protected]>--- drivers/net/macvlan.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Here is the summary with links:
- net: remove __get_unaligned_cpu32 from macvlan driver
https://git.kernel.org/netdev/net-next/c/e4cb91178023
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html