selftest/timerns: fix clang build failures for abs() calls
authorJohn Hubbard <jhubbard@nvidia.com>
Thu, 4 Jul 2024 02:52:47 +0000 (19:52 -0700)
committerShuah Khan <skhan@linuxfoundation.org>
Fri, 5 Jul 2024 19:21:48 +0000 (13:21 -0600)
commitf76f9bc616b7320df6789241ca7d26cedcf03cf3
tree013db5816d5ddba14908d6068fcc51362be2e77b
parent48236960c06d32370bfa6f2cc408e786873262c8
selftest/timerns: fix clang build failures for abs() calls

When building with clang, via:

    make LLVM=1 -C tools/testing/selftests

...clang warns about mismatches between the expected and required
integer length being supplied to abs(3).

Fix this by using the correct variant of abs(3): labs(3) or llabs(3), in
these cases.

Reviewed-by: Dmitry Safonov <dima@arista.com>
Reviewed-by: Muhammad Usama Anjum <usama.anjum@collabora.com>
Signed-off-by: John Hubbard <jhubbard@nvidia.com>
Acked-by: Andrei Vagin <avagin@google.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/testing/selftests/timens/exec.c
tools/testing/selftests/timens/timer.c
tools/testing/selftests/timens/timerfd.c
tools/testing/selftests/timens/vfork_exec.c