✗ CI.checkpatch: warning for drm/xe/display: use mul_u32_u32 for multiplying operands

Patchwork patchwork at emeril.freedesktop.org
Wed Apr 10 03:10:45 UTC 2024


== Series Details ==

Series: drm/xe/display: use mul_u32_u32 for multiplying operands
URL   : https://patchwork.freedesktop.org/series/132242/
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
10b531c2aeb176a1a539b4a77216232f97719cec
+ cd /kernel
+ git config --global --add safe.directory /kernel
+ git log -n1
commit 65f8178111b09b7eed7a8f591546db06c4db426f
Author: Arun R Murthy <arun.r.murthy at intel.com>
Date:   Wed Apr 10 08:18:10 2024 +0530

    drm/xe/display: use mul_u32_u32 for multiplying operands
    
    Use mul_u32_u32 to avoid potential overflow in multiplying two u32 and
    store the u64 result.
    
    v2: remove u64 typecast and use mul_u32_u32 (Ville)
    v3: Reframe the commit message <Rodrigo>
    
    Signed-off-by: Arun R Murthy <arun.r.murthy at intel.com>
+ /mt/dim checkpatch 057ec21a54cddd595a7725fa8731eb4c5bd5abff drm-intel
65f8178111b0 drm/xe/display: use mul_u32_u32 for multiplying operands
-:23: WARNING:LONG_LINE: line length of 101 exceeds 100 columns
#23: FILE: drivers/gpu/drm/xe/display/xe_fb_pin.c:32:
+			u64 pte = ggtt->pt_ops->pte_encode_bo(bo, mul_u32_u32(src_idx, XE_PAGE_SIZE),

-:52: WARNING:LONG_LINE: line length of 101 exceeds 100 columns
#52: FILE: drivers/gpu/drm/xe/display/xe_fb_pin.c:170:
+			u64 pte = ggtt->pt_ops->pte_encode_bo(bo, mul_u32_u32(src_idx, XE_PAGE_SIZE),

total: 0 errors, 2 warnings, 0 checks, 34 lines checked




More information about the Intel-xe mailing list