✗ CI.checkpatch: warning for drm/xe/guc: Don't allocate temporary policies object

Patchwork patchwork at emeril.freedesktop.org
Wed Jul 2 16:50:26 UTC 2025


== Series Details ==

Series: drm/xe/guc: Don't allocate temporary policies object
URL   : https://patchwork.freedesktop.org/series/151075/
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
f8ff75ae1d2127635239b134695774ed4045d05b
+ cd /kernel
+ git config --global --add safe.directory /kernel
+ git log -n1
commit b92e861c0cb34b8845e5c73e6d1ea3716beac352
Author: Michal Wajdeczko <michal.wajdeczko at intel.com>
Date:   Wed Jul 2 16:25:04 2025 +0200

    drm/xe/guc: Don't allocate temporary policies object
    
    Since we are already using reusable buffer objects from the GuC
    buffer cache, we can directly write into their CPU pointers and
    spare unnecessary temporary allocation.
    
    While around, also make sure to clear obtained buffer, to avoid
    sending some stale data.
    
    Signed-off-by: Michal Wajdeczko <michal.wajdeczko at intel.com>
    Cc: Matthew Brost <matthew.brost at intel.com>
    Reviewed-by: Matthew Brost <matthew.brost at intel.com>
+ /mt/dim checkpatch 94631e6b7f655b1922e3227970cd6180200694af drm-intel
b92e861c0cb3 drm/xe/guc: Don't allocate temporary policies object
-:47: WARNING:LINE_SPACING: Missing a blank line after declarations
#47: FILE: drivers/gpu/drm/xe/xe_guc_ads.c:1011:
+	struct xe_device *xe = ads_to_xe(ads);
+	CLASS(xe_guc_buf, buf)(&guc->buf, sizeof(*policies));

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




More information about the Intel-xe mailing list