✗ CI.checkpatch: warning for drm/i915: use NULL for zero wakeref_t instead of plain integer 0

Patchwork patchwork at emeril.freedesktop.org
Wed Oct 2 18:23:15 UTC 2024


== Series Details ==

Series: drm/i915: use NULL for zero wakeref_t instead of plain integer 0
URL   : https://patchwork.freedesktop.org/series/139438/
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
30ab6715fc09baee6cc14cb3c89ad8858688d474
+ cd /kernel
+ git config --global --add safe.directory /kernel
+ git log -n1
commit 16b10cb49588c59eec8d7b6475c745a39bba804c
Author: Jani Nikula <jani.nikula at intel.com>
Date:   Wed Oct 2 21:16:55 2024 +0300

    drm/i915: use NULL for zero wakeref_t instead of plain integer 0
    
    As of commit 2edc6a75f26c ("drm/i915: switch intel_wakeref_t underlying
    type to struct ref_tracker *") we gained quite a few sparse warnings
    about "Using plain integer as NULL pointer" for using 0 to initialize
    wakeref_t. Switch to NULL everywhere.
    
    Signed-off-by: Jani Nikula <jani.nikula at intel.com>
+ /mt/dim checkpatch 789d5631453c3edad1988cd47db1643555e52ac9 drm-intel
16b10cb49588 drm/i915: use NULL for zero wakeref_t instead of plain integer 0
-:163: WARNING:LONG_LINE: line length of 103 exceeds 100 columns
#163: FILE: drivers/gpu/drm/i915/gt/intel_gt_pm.h:87:
+	for ((wf) = intel_gt_pm_get_if_awake(gt); (wf); intel_gt_pm_put_async((gt), (wf)), (wf) = NULL)

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




More information about the Intel-xe mailing list