[Intel-xe] ✗ CI.checkpatch: warning for Use Xe assert macros instead of XE_WARN_ON macro (rev4)

Patchwork patchwork at emeril.freedesktop.org
Tue Sep 12 08:39:40 UTC 2023


== Series Details ==

Series: Use Xe assert macros instead of XE_WARN_ON macro (rev4)
URL   : https://patchwork.freedesktop.org/series/122906/
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
63c2b6b160bca2df6efc7bc4cea6f442097d7854
+ cd /kernel
+ git config --global --add safe.directory /kernel
+ git log -n1
commit 72a13724e5ff60cd40322f050d25ddad087667d8
Author: Francois Dugast <francois.dugast at intel.com>
Date:   Tue Sep 12 08:36:35 2023 +0000

    drm/xe: Use Xe assert macros instead of XE_WARN_ON macro
    
    The XE_WARN_ON macro maps to WARN_ON which is not justified
    in many cases where only a simple debug check is needed.
    Replace the use of the XE_WARN_ON macro with the new xe_assert
    macros which relies on drm_*. This takes a struct drm_device
    argument, which is one of the main changes in this commit. The
    other main change is that the condition is reversed, as with
    XE_WARN_ON a message is displayed if the condition is true,
    whereas with xe_assert it is if the condition is false.
    
    v2:
    - Rebase
    - Keep WARN splats in xe_wopcm.c (Matt Roper)
    
    v3:
    - Rebase
    
    Signed-off-by: Francois Dugast <francois.dugast at intel.com>
    Reviewed-by: Rodrigo Vivi <rodrigo.vivi at intel.com>
+ /mt/dim checkpatch b4ddac861881e66a4af06531a7a72345c086bac1 drm-intel
95dd37273 drm/xe: Replace XE_WARN_ON with drm_warn when just printing a string
ed60f967a drm/xe: Introduce Xe assert macros
Traceback (most recent call last):
  File "scripts/spdxcheck.py", line 6, in <module>
    from ply import lex, yacc
ModuleNotFoundError: No module named 'ply'
-:40: WARNING:COMMIT_LOG_LONG_LINE: Possible unwrapped commit description (prefer a maximum 75 chars per line)
#40: 
[ ] WARNING: CPU: 0 PID: 2687 at drivers/gpu/drm/xe/xe_device.c:281 xe_device_probe+0x374/0x520 [xe]

-:70: WARNING:FILE_PATH_CHANGES: added, moved or deleted file(s), does MAINTAINERS need updating?
#70: 
new file mode 100644

total: 0 errors, 2 warnings, 0 checks, 177 lines checked
72a13724e drm/xe: Use Xe assert macros instead of XE_WARN_ON macro




More information about the Intel-xe mailing list