aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c
diff options
context:
space:
mode:
authorJohn Stultz <[email protected]>2024-04-10 23:26:30 +0000
committerThomas Gleixner <[email protected]>2024-04-12 12:11:15 +0000
commited366de8ec89d4f960d66c85fc37d9de22f7bf6d (patch)
treebbb31db74d4c69c415de3bf864357fd3eb3e6c34 /drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c
parentselftests: kselftest: Mark functions that unconditionally call exit() as __no... (diff)
downloadkernel-ed366de8ec89d4f960d66c85fc37d9de22f7bf6d.tar.gz
kernel-ed366de8ec89d4f960d66c85fc37d9de22f7bf6d.zip
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 <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Cc: [email protected] Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c')
0 files changed, 0 insertions, 0 deletions