aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/net_dropmonitor.py
diff options
context:
space:
mode:
authorKees Cook <[email protected]>2022-05-08 03:22:17 -0700
committerPaolo Abeni <[email protected]>2022-05-10 12:21:51 +0200
commitdc5306a8c0eace6c113aded2e36ae5e15fdca4d7 (patch)
tree9871932c6b1920bdf99797282deb89d92f2de435 /tools/perf/scripts/python/net_dropmonitor.py
parent1809c30b6e5a83a1de1435fe01aaa4de4d626a7c (diff)
decnet: Use container_of() for struct dn_neigh casts
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; ^ Update all the open-coded casts to use container_of() to do the conversion instead of depending on strict member ordering. Reported-by: kernel test robot <[email protected]> Link: https://lore.kernel.org/lkml/[email protected] Cc: "David S. Miller" <[email protected]> Cc: Jakub Kicinski <[email protected]> Cc: Paolo Abeni <[email protected]> Cc: Yajun Deng <[email protected]> Cc: Zheng Yongjun <[email protected]> Cc: Bill Wendling <[email protected]> Cc: [email protected] Cc: [email protected] Signed-off-by: Kees Cook <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Paolo Abeni <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions