diff options
author | Vadim Fedorenko <[email protected]> | 2021-02-04 20:50:34 +0300 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2021-02-04 20:22:30 -0800 |
commit | 647b8dd5184665432cc8a2b5bca46a201f690c37 (patch) | |
tree | 10358d0848879315a95cda6455bdd22fe5c0a101 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | 8fd54a73b7cda11548154451bdb4bde6d8ff74c7 (diff) |
selftests: txtimestamp: fix compilation issue
PACKET_TX_TIMESTAMP is defined in if_packet.h but it is not included in
test. Include it instead of <netpacket/packet.h> otherwise the error of
redefinition arrives.
Also fix the compiler warning about ambiguous control flow by adding
explicit braces.
Fixes: 8fe2f761cae9 ("net-timestamp: expand documentation")
Suggested-by: Willem de Bruijn <[email protected]>
Signed-off-by: Vadim Fedorenko <[email protected]>
Acked-by: Willem de Bruijn <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions