Re: [PATCH] decnet: Use container_of() for struct dn_neigh casts

From: patchwork-bot+netdevbpf
Date: Tue May 10 2022 - 06:40:21 EST


Hello:

This patch was applied to netdev/net.git (master)
by Paolo Abeni <pabeni@xxxxxxxxxx>:

On Sun, 8 May 2022 03:22:17 -0700 you wrote:
> Clang's structure layout randomization feature gets upset when it sees
> struct neighbor (which is randomized) cast to struct dn_neigh:
>
> net/decnet/dn_route.c:1123:15: error: casting from randomized structure pointer type 'struct neighbour *' to 'struct dn_neigh *'
> gateway = ((struct dn_neigh *)neigh)->addr;
> ^
>
> [...]

Here is the summary with links:
- decnet: Use container_of() for struct dn_neigh casts
https://git.kernel.org/netdev/net/c/dc5306a8c0ea

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html