✗ CI.checkpatch: warning for drm/ttm: Fix build with CONFIG_DEBUG_FS=n

Patchwork patchwork at emeril.freedesktop.org
Tue Jun 3 18:57:41 UTC 2025


== Series Details ==

Series: drm/ttm: Fix build with CONFIG_DEBUG_FS=n
URL   : https://patchwork.freedesktop.org/series/149797/
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 b7988235e298b8979a7340dcfb7937b4f6fb7524
Author: Lucas De Marchi <lucas.demarchi at intel.com>
Date:   Tue Jun 3 11:47:51 2025 -0700

    drm/ttm: Fix build with CONFIG_DEBUG_FS=n
    
    Move the define outside the ifdef for CONFIG_DEBUG_FS to fix the build.
    This currently breaks drm kunit tests:
    
            $ ./tools/testing/kunit/kunit.py run --kunitconfig drivers/gpu/drm/ttm/tests/.kunitconfig
            ERROR:root:../drivers/gpu/drm/ttm/ttm_pool.c: In function ‘ttm_pool_mgr_init’:
            ../drivers/gpu/drm/ttm/ttm_pool.c:1335:30: error: ‘TTM_SHRINKER_BATCH’ undeclared (first use in this function)
             1335 |         mm_shrinker->batch = TTM_SHRINKER_BATCH;
    
    Fixes: 22b929b25293 ("drm/ttm: Increase pool shrinker batch target")
    Cc: Tvrtko Ursulin <tvrtko.ursulin at igalia.com>
    Cc: Christian König <christian.koenig at amd.com>
    Signed-off-by: Lucas De Marchi <lucas.demarchi at intel.com>
+ /mt/dim checkpatch ba486e3b10ce5b4ee4d1ffc58aa4cc3b669c02a3 drm-intel
b7988235e298 drm/ttm: Fix build with CONFIG_DEBUG_FS=n
-:12: WARNING:COMMIT_LOG_LONG_LINE: Prefer a maximum 75 chars per line (possible unwrapped commit description?)
#12: 
	$ ./tools/testing/kunit/kunit.py run --kunitconfig drivers/gpu/drm/ttm/tests/.kunitconfig

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




More information about the Intel-xe mailing list