kernel_samsung_a53x/tools/testing/selftests/timers
John Stultz d45d32241d selftests: timers: Fix abs() warning in posix_timers test
commit ed366de8ec89d4f960d66c85fc37d9de22f7bf6d upstream.

Building with clang results in the following warning:

  posix_timers.c:69:6: warning: absolute value function 'abs' given an
      argument of type 'long long' but has parameter of type 'int' which may
      cause truncation of value [-Wabsolute-value]
        if (abs(diff - DELAY * USECS_PER_SEC) > USECS_PER_SEC / 2) {
            ^
So switch to using llabs() instead.

Fixes: 0bc4b0cf1570 ("selftests: add basic posix timers selftests")
Signed-off-by: John Stultz <jstultz@google.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20240410232637.4135564-3-jstultz@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-11-19 11:32:20 +01:00
..
adjtick.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
alarmtimer-suspend.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
change_skew.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
clocksource-switch.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
freq-step.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
inconsistency-check.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
leap-a-day.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
leapcrash.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mqueue-lat.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
nanosleep.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
nsleep-lat.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
posix_timers.c selftests: timers: Fix abs() warning in posix_timers test 2024-11-19 11:32:20 +01:00
raw_skew.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rtcpie.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
set-2038.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
set-tai.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
set-timer-lat.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
set-tz.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
settings Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
skew_consistency.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
threadtest.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
valid-adjtimex.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00