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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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





[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux