* [PATCH] net: ipvlan: remove __get_unaligned_cpu32 from ipvlan driver
@ 2025-04-08 9:19 Julian Vetter
2025-04-10 1:00 ` patchwork-bot+netdevbpf
0 siblings, 1 reply; 2+ messages in thread
From: Julian Vetter @ 2025-04-08 9:19 UTC (permalink / raw)
To: Arnd Bergmann, Andrew Lunn, David S . Miller, Eric Dumazet,
Jakub Kicinski, Paolo Abeni, Ido Schimmel, Guillaume Nault,
Yue Haibing
Cc: netdev, linux-kernel, Julian Vetter
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>
---
drivers/net/ipvlan/ipvlan_core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ipvlan/ipvlan_core.c b/drivers/net/ipvlan/ipvlan_core.c
index ca62188a317a..8ccbde16ddfa 100644
--- a/drivers/net/ipvlan/ipvlan_core.c
+++ b/drivers/net/ipvlan/ipvlan_core.c
@@ -219,7 +219,7 @@ void *ipvlan_get_L3_hdr(struct ipvl_port *port, struct sk_buff *skb, int *type)
unsigned int ipvlan_mac_hash(const unsigned char *addr)
{
- u32 hash = jhash_1word(__get_unaligned_cpu32(addr+2),
+ u32 hash = jhash_1word(get_unaligned((u32 *)(addr + 2)),
ipvlan_jhash_secret);
return hash & IPVLAN_MAC_FILTER_MASK;
--
2.34.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] net: ipvlan: remove __get_unaligned_cpu32 from ipvlan driver
2025-04-08 9:19 [PATCH] net: ipvlan: remove __get_unaligned_cpu32 from ipvlan driver Julian Vetter
@ 2025-04-10 1:00 ` patchwork-bot+netdevbpf
0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+netdevbpf @ 2025-04-10 1:00 UTC (permalink / raw)
To: Julian Vetter
Cc: arnd, andrew+netdev, davem, edumazet, kuba, pabeni, idosch,
gnault, yuehaibing, netdev, linux-kernel
Hello:
This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:
On Tue, 8 Apr 2025 11:19:46 +0200 you wrote:
> 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>
> ---
> drivers/net/ipvlan/ipvlan_core.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Here is the summary with links:
- net: ipvlan: remove __get_unaligned_cpu32 from ipvlan driver
https://git.kernel.org/netdev/net-next/c/1635eecdd298
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-04-10 0:59 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-08 9:19 [PATCH] net: ipvlan: remove __get_unaligned_cpu32 from ipvlan driver Julian Vetter
2025-04-10 1:00 ` patchwork-bot+netdevbpf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).