✗ CI.checkpatch: warning for TTM LRU-walk cherry-picks

Patchwork patchwork at emeril.freedesktop.org
Fri Jul 5 15:43:38 UTC 2024


== Series Details ==

Series: TTM LRU-walk cherry-picks
URL   : https://patchwork.freedesktop.org/series/135801/
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
51ce9f6cd981d42d7467409d7dbc559a450abc1e
+ cd /kernel
+ git config --global --add safe.directory /kernel
+ git log -n1
commit d357200824ab4047e19cbf37038298822a9f5eb9
Author: Thomas Hellström <thomas.hellstrom at linux.intel.com>
Date:   Fri Jul 5 17:32:06 2024 +0200

    drm/ttm: Balance ttm_resource_cursor_init() and ttm_resource_cursor_fini()
    
    Make the interface more symmetric by providing and using a
    ttm_resource_cursor_init().
    
    Signed-off-by: Thomas Hellström <thomas.hellstrom at linux.intel.com>
+ /mt/dim checkpatch cdd1a80a2d16d5213af20a29eb7570a7651db7dc drm-intel
089afb4f8e1d drm/ttm: Allow TTM LRU list nodes of different types
0f055d806500 drm/ttm: Slightly clean up LRU list iteration
74f759dc4e7f drm/ttm: Use LRU hitches
be6ddb6f31a2 drm/ttm, drm/amdgpu, drm/xe: Consider hitch moves within bulk sublist moves
09a0acb0944e drm/ttm: Provide a generic LRU walker helper
eb4ac3426020 drm/ttm: Use the LRU walker helper for swapping
1075fe9d6706 drm/ttm: Use the LRU walker for eviction
d357200824ab drm/ttm: Balance ttm_resource_cursor_init() and ttm_resource_cursor_fini()
-:157: CHECK:MACRO_ARG_REUSE: Macro argument reuse 'cursor' - possible side-effects?
#157: FILE: include/drm/ttm/ttm_resource.h:477:
+#define ttm_resource_manager_for_each_res(cursor, res)	\
+	for (res = ttm_resource_manager_first(cursor); res;	\
 	     res = ttm_resource_manager_next(cursor))

-:157: CHECK:MACRO_ARG_REUSE: Macro argument reuse 'res' - possible side-effects?
#157: FILE: include/drm/ttm/ttm_resource.h:477:
+#define ttm_resource_manager_for_each_res(cursor, res)	\
+	for (res = ttm_resource_manager_first(cursor); res;	\
 	     res = ttm_resource_manager_next(cursor))

total: 0 errors, 0 warnings, 2 checks, 121 lines checked




More information about the Intel-xe mailing list