diff options
author | Stanislav Fomichev <sdf@google.com> | 2019-04-11 15:53:16 -0700 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2019-04-16 09:51:48 +0200 |
commit | bcbccad694b7ef0de9a993ecd918231c10a1496a (patch) | |
tree | 0997fe87eaf8225cf182bd12dd0f3ef270d7102a /tools/include/uapi | |
parent | efb2ddc4ce5dba9b6c5ec106528d18a645424f3f (diff) | |
download | linux-bcbccad694b7ef0de9a993ecd918231c10a1496a.tar.bz2 |
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 <alan.maguire@oracle.com>
Cc: Willem de Bruijn <willemdebruijn.kernel@gmail.com>
Fixes: 166b5a7f2ca3 ("selftests_bpf: extend test_tc_tunnel for UDP encap")
Signed-off-by: Stanislav Fomichev <sdf@google.com>
Acked-by: Song Liu <songliubraving@fb.com>
Reviewed-by: Alan Maguire <alan.maguire@oracle.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Diffstat (limited to 'tools/include/uapi')
0 files changed, 0 insertions, 0 deletions