✗ CI.checkpatch: warning for drm/xe/display: fix potential overflow when multiplying 2 u32

Patchwork patchwork at emeril.freedesktop.org
Tue Mar 12 10:09:54 UTC 2024


== Series Details ==

Series: drm/xe/display: fix potential overflow when multiplying 2 u32
URL   : https://patchwork.freedesktop.org/series/131013/
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
a9bb2a8a17457065eb398a81e8fd9aec2b519fd6
+ cd /kernel
+ git config --global --add safe.directory /kernel
+ git log -n1
commit 01509f955224fa629873d9f222f07287c71630e5
Author: Arun R Murthy <arun.r.murthy at intel.com>
Date:   Tue Mar 12 15:24:41 2024 +0530

    drm/xe/display: fix potential overflow when multiplying 2 u32
    
    Multiplying XE_PAGE_SIZE with another u32 and the product stored in
    u64 can potentially lead to overflow. Change one of the value to u64 so
    as to perform 64 bit arithmetic operation as the product is u64.
    
    Signed-off-by: Arun R Murthy <arun.r.murthy at intel.com>
+ /mt/dim checkpatch 61fa386186cb302cf26e29aef76d5b1a6ffe57ad drm-intel
01509f955224 drm/xe/display: fix potential overflow when multiplying 2 u32
-:31: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis
#31: FILE: drivers/gpu/drm/xe/display/xe_fb_pin.c:65:
+				     pte_encode_bo(bo, src_idx * (u64)XE_PAGE_SIZE,
 				     xe->pat.idx[XE_CACHE_WB]));

total: 0 errors, 0 warnings, 1 checks, 38 lines checked




More information about the Intel-xe mailing list