diff options
author | Tanner Love <tannerlove@google.com> | 2020-07-27 12:25:30 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-07-27 12:56:58 -0700 |
commit | b4da96ffd30bd4a305045ba5c9b0de5d4aa20dc7 (patch) | |
tree | c60637bfe626ee236ad612ef71b8561c96cedf92 /tools/testing/selftests/net/tcp_mmap.c | |
parent | 64f9ede2274980076423583683d44480909b7a40 (diff) |
selftests/net: so_txtime: fix clang issues for target arch PowerPC
On powerpcle, int64_t maps to long long. Clang 9 threw:
warning: absolute value function 'labs' given an argument of type \
'long long' but has parameter of type 'long' which may cause \
truncation of value [-Wabsolute-value]
if (labs(tstop - texpect) > cfg_variance_us)
Tested: make -C tools/testing/selftests TARGETS="net" run_tests
Fixes: af5136f95045 ("selftests/net: SO_TXTIME with ETF and FQ")
Signed-off-by: Tanner Love <tannerlove@google.com>
Acked-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/testing/selftests/net/tcp_mmap.c')
0 files changed, 0 insertions, 0 deletions