✗ CI.checkpatch: warning for drm: Create a task info option for wedge events

Patchwork patchwork at emeril.freedesktop.org
Wed May 21 15:57:29 UTC 2025


== Series Details ==

Series: drm: Create a task info option for wedge events
URL   : https://patchwork.freedesktop.org/series/149332/
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
202708c00696422fd217223bb679a353a5936e23
+ cd /kernel
+ git config --global --add safe.directory /kernel
+ git log -n1
commit 31e76dc1708a823bacf3fe8faccf756db7a0069d
Author: André Almeida <andrealmeid at igalia.com>
Date:   Wed May 21 12:33:23 2025 -0300

    drm/amdgpu: Make use of drm_wedge_task_info
    
    To notify userspace about which task (if any) made the device get in a
    wedge state, make use of drm_wedge_task_info parameter, filling it with
    the task PID and name.
    
    Signed-off-by: André Almeida <andrealmeid at igalia.com>
+ /mt/dim checkpatch 2d8dc23f1e6ce72fe9e45fd0db71076d90a4e1aa drm-intel
0048782eb049 drm: Create a task info option for wedge events
-:84: WARNING:STATIC_CONST_CHAR_ARRAY: char * array declaration might be better as static const
#84: FILE: drivers/gpu/drm/drm_drv.c:567:
+	char *envp[] = { event_string, NULL, NULL, NULL };

-:92: CHECK:UNNECESSARY_PARENTHESES: Unnecessary parentheses around 'info->pid >= 0'
#92: FILE: drivers/gpu/drm/drm_drv.c:589:
+	if (info && ((info->comm && info->comm[0] != '\0')) && (info->pid >= 0)) {

total: 0 errors, 1 warnings, 1 checks, 101 lines checked
61cf01402432 drm/doc: Add a section about "Task information" for the wedge API
31e76dc1708a drm/amdgpu: Make use of drm_wedge_task_info




More information about the Intel-xe mailing list