summaryrefslogtreecommitdiff
path: root/mm/zpool.c
diff options
context:
space:
mode:
authorJohn Stultz <jstultz@google.com>2024-04-11 02:26:30 +0300
committerThomas Gleixner <tglx@linutronix.de>2024-04-12 15:11:15 +0300
commited366de8ec89d4f960d66c85fc37d9de22f7bf6d (patch)
treebbb31db74d4c69c415de3bf864357fd3eb3e6c34 /mm/zpool.c
parentf7d5bcd35d427daac7e206b1073ca14f5db85c27 (diff)
downloadlinux-ed366de8ec89d4f960d66c85fc37d9de22f7bf6d.tar.xz
selftests: timers: Fix abs() warning in posix_timers test
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
Diffstat (limited to 'mm/zpool.c')
0 files changed, 0 insertions, 0 deletions