✗ CI.checkpatch: warning for drm/xe: Explicitly cast to u64 to avoid overflow
Patchwork
patchwork at emeril.freedesktop.org
Fri Jun 14 05:57:11 UTC 2024
== Series Details ==
Series: drm/xe: Explicitly cast to u64 to avoid overflow
URL : https://patchwork.freedesktop.org/series/134869/
State : warning
== Summary ==
+ KERNEL=/kernel
+ git clone https://gitlab.freedesktop.org/drm/maintainer-tools mt
Cloning into 'mt'...
warning: redirecting to https://gitlab.freedesktop.org/drm/maintainer-tools.git/
+ git -C mt rev-list -n1 origin/master
51ce9f6cd981d42d7467409d7dbc559a450abc1e
+ cd /kernel
+ git config --global --add safe.directory /kernel
+ git log -n1
commit 774a938a9e0598410ee5c399971de5b4fd77732f
Author: Zbigniew Kempczyński <zbigniew.kempczynski at intel.com>
Date: Fri Jun 14 07:15:56 2024 +0200
drm/xe: Explicitly cast to u64 to avoid overflow
Without casting whole expression will be calculated on u32 what
means adding U32_MAX effectively decreases the result by one due to
overflow. Fix this and use explicit cast to u64.
Signed-off-by: Zbigniew Kempczyński <zbigniew.kempczynski at intel.com>
Cc: Matthew Brost <matthew.brost at intel.com>
+ /mt/dim checkpatch a88e8dc2c59464cac89137471031d736a408652f drm-intel
774a938a9e05 drm/xe: Explicitly cast to u64 to avoid overflow
-:26: CHECK:SPACING: No space is necessary after a cast
#26: FILE: drivers/gpu/drm/xe/xe_guc_submit.c:970:
+ diff = (u64) ctx_timestamp + U32_MAX - ctx_job_timestamp;
total: 0 errors, 0 warnings, 1 checks, 8 lines checked
More information about the Intel-xe
mailing list