aboutsummaryrefslogtreecommitdiffstats
path: root/tools/bpf/bpftool/prog.c
diff options
context:
space:
mode:
authorStanislav Fomichev <[email protected]>2019-04-11 22:53:16 +0000
committerDaniel Borkmann <[email protected]>2019-04-16 07:51:48 +0000
commitbcbccad694b7ef0de9a993ecd918231c10a1496a (patch)
tree0997fe87eaf8225cf182bd12dd0f3ef270d7102a /tools/bpf/bpftool/prog.c
parentselftests/btf: add VAR and DATASEC case for dedup tests (diff)
downloadkernel-bcbccad694b7ef0de9a993ecd918231c10a1496a.tar.gz
kernel-bcbccad694b7ef0de9a993ecd918231c10a1496a.zip
selftests/bpf: bring back (void *) cast to set_ipv4_csum in test_tc_tunnel
It was removed in commit 166b5a7f2ca3 ("selftests_bpf: extend test_tc_tunnel for UDP encap") without any explanation. Otherwise I see: progs/test_tc_tunnel.c:160:17: warning: taking address of packed member 'ip' of class or structure 'v4hdr' may result in an unaligned pointer value [-Waddress-of-packed-member] set_ipv4_csum(&h_outer.ip); ^~~~~~~~~~ 1 warning generated. Cc: Alan Maguire <[email protected]> Cc: Willem de Bruijn <[email protected]> Fixes: 166b5a7f2ca3 ("selftests_bpf: extend test_tc_tunnel for UDP encap") Signed-off-by: Stanislav Fomichev <[email protected]> Acked-by: Song Liu <[email protected]> Reviewed-by: Alan Maguire <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]>
Diffstat (limited to 'tools/bpf/bpftool/prog.c')
0 files changed, 0 insertions, 0 deletions