Re: [PATCH v3] selftest/timerns: fix clang build failures for abs() calls

From: Shuah Khan
Date: Tue Jul 09 2024 - 16:35:31 EST


On 7/3/24 21:44, Andrei Vagin wrote:
On Wed, Jul 3, 2024 at 7:52 PM John Hubbard <jhubbard@xxxxxxxxxx> wrote:

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.


Acked-by: Andrei Vagin <avagin@xxxxxxxxxx>


Sent in for Linux 6.10 fixes update.

thanks,
-- Shuah