✓ CI.checkpatch: success for drm/xe: fix build warning with CONFIG_PM=n

Patchwork patchwork at emeril.freedesktop.org
Mon Sep 9 20:31:08 UTC 2024


== Series Details ==

Series: drm/xe: fix build warning with CONFIG_PM=n
URL   : https://patchwork.freedesktop.org/series/138430/
State : success

== 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
c62d7e164862503a3662a095da1c6c9014248cb2
+ cd /kernel
+ git config --global --add safe.directory /kernel
+ git log -n1
commit 23e607f4a3fc2e794593b7fe682edd12ba5e8258
Author: Arnd Bergmann <arnd at arndb.de>
Date:   Mon Sep 9 20:25:08 2024 +0000

    drm/xe: fix build warning with CONFIG_PM=n
    
    The 'runtime_status' field is an implementation detail of the
    power management code, so a device driver should not normally
    touch this:
    
    drivers/gpu/drm/xe/xe_pm.c: In function 'xe_pm_suspending_or_resuming':
    drivers/gpu/drm/xe/xe_pm.c:606:26: error: 'struct dev_pm_info' has no member named 'runtime_status'
      606 |         return dev->power.runtime_status == RPM_SUSPENDING ||
          |                          ^
    drivers/gpu/drm/xe/xe_pm.c:607:27: error: 'struct dev_pm_info' has no member named 'runtime_status'
      607 |                 dev->power.runtime_status == RPM_RESUMING;
          |                           ^
    drivers/gpu/drm/xe/xe_pm.c:608:1: error: control reaches end of non-void function [-Werror=return-type]
    
    Add an #ifdef check to avoid the build regression.
    
    Fixes: cb85e39dc5d1 ("drm/xe: Suppress missing outer rpm protection warning")
    Signed-off-by: Arnd Bergmann <arnd at arndb.de>
+ /mt/dim checkpatch bd6c4b2266ebc908d55e8ec3f419b832ebdc3945 drm-intel
23e607f4a3fc drm/xe: fix build warning with CONFIG_PM=n




More information about the Intel-xe mailing list