netdev: Add missing __percpu qualifier to a cast
Subsystems (2)
PATCH 1/1 netdev: Add missing __percpu qualifier to a cast
Add missing __percpu qualifier to a (void *) cast to fix
dev.c:10863:45: warning: cast removes address space '__percpu' of expression
sparse warning. Also remove now unneeded __force sparse directives.
Found by GCC's named address space checks.
There were no changes in the resulting object file.
--- net/core/dev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/core/dev.c +1 -1
@@ -10860,7 +10860,7 @@ noinline void netdev_core_stats_inc(struct net_device *dev, u32 offset)return ; } - field = (__force unsigned long __percpu *)((__force void *)p + offset); + field = (unsigned long __percpu *)((void __percpu *)p + offset);this_cpu_inc (*field); }EXPORT_SYMBOL_GPL (netdev_core_stats_inc);
Signature · 1 line
2.46.0
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 9 lines · On Wed, 14 Aug 2024 09:06:38 +0200 you wrote:
Add missing
__percpuqualifier to a (void *) cast to fixdev.c:10863:45: warning: cast removes address space '
__percpu' of expressionsparse warning. Also remove now unneeded
__forcesparse directives.Found by GCC's named address space checks.
[...]
Here is the summary with links:
- netdev: Add missing __percpu qualifier to a cast
https://git.kernel.org/netdev/net-next/c/d440af37ba6f
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html