eth: nfp: remove __get_unaligned_cpu32 from netronome drivers
Subsystems (3)
PATCH 1/1 eth: nfp: remove __get_unaligned_cpu32 from netronome drivers
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/ethernet/netronome/nfp/nfd3/dp.c | 2 +- drivers/net/ethernet/netronome/nfp/nfdk/dp.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/net/ethernet/netronome/nfp/nfd3/dp.c +1 -1
@@ -779,7 +779,7 @@ nfp_nfd3_parse_meta(struct net_device *netdev, struct nfp_meta_parsed *meta,case NFP_NET_META_CSUM : meta->csum_type =CHECKSUM_COMPLETE ; meta->csum = - (__force __wsum )__get_unaligned_cpu32 (data); + (__force __wsum )get_unaligned ((u32 *)data); data +=4 ;break ;case NFP_NET_META_RESYNC_INFO :
drivers/net/ethernet/netronome/nfp/nfdk/dp.c +1 -1
@@ -779,7 +779,7 @@ nfp_nfdk_parse_meta(struct net_device *netdev, struct nfp_meta_parsed *meta,case NFP_NET_META_CSUM : meta->csum_type =CHECKSUM_COMPLETE ; meta->csum = - (__force __wsum )__get_unaligned_cpu32 (data); + (__force __wsum )get_unaligned ((u32 *)data); data +=4 ;break ;case NFP_NET_META_RESYNC_INFO :
Signature · 1 line
2.34.1
Quoted 4 lines · Julian Vetter
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]>
Reviewed-by Simon Horman <[email protected]>
This patch was applied to netdev/net-next.git (main) by Paolo Abeni <[email protected]>:
Hello:
This patch was applied to netdev/net-next.git (main) by Paolo Abeni <[email protected]>:
Quoted 8 lines · On Mon, 7 Apr 2025 10:33:06 +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/ethernet/netronome/nfp/nfd3/dp.c | 2 +- drivers/net/ethernet/netronome/nfp/nfdk/dp.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
Here is the summary with links:
- eth: nfp: remove __get_unaligned_cpu32 from netronome drivers
https://git.kernel.org/netdev/net-next/c/fc2e4f4f7b5f
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html