linux/tools/testing/selftests/timens
John Hubbard f76f9bc616 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>
2024-07-05 13:21:48 -06:00
..
.gitignore selftests/timens: add a test for vfork+exit 2022-10-25 15:15:52 -07:00
clock_nanosleep.c selftests/timens: handle a case when alarm clocks are not supported 2020-05-22 13:29:55 -06:00
config
exec.c selftest/timerns: fix clang build failures for abs() calls 2024-07-05 13:21:48 -06:00
futex.c selftests/timens: Add a test for futex() 2020-10-20 17:02:57 +02:00
gettime_perf.c selftests/timens: Fix gettime_perf to work on powerpc 2021-04-21 22:52:32 +10:00
log.h
Makefile selftests/timens: add a test for vfork+exit 2022-10-25 15:15:52 -07:00
procfs.c selftests/timens: remove ARRAY_SIZE define from individual tests 2021-12-10 17:51:20 -07:00
timens.c selftests/timens: remove ARRAY_SIZE define from individual tests 2021-12-10 17:51:20 -07:00
timens.h selftests/timens: handle a case when alarm clocks are not supported 2020-05-22 13:29:55 -06:00
timer.c selftest/timerns: fix clang build failures for abs() calls 2024-07-05 13:21:48 -06:00
timerfd.c selftest/timerns: fix clang build failures for abs() calls 2024-07-05 13:21:48 -06:00
vfork_exec.c selftest/timerns: fix clang build failures for abs() calls 2024-07-05 13:21:48 -06:00