]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/ttm: replace drm_print.h include with a forward declaration
authorJani Nikula <jani.nikula@intel.com>
Wed, 29 Oct 2025 10:39:48 +0000 (12:39 +0200)
committerJani Nikula <jani.nikula@intel.com>
Fri, 31 Oct 2025 08:34:56 +0000 (10:34 +0200)
The ttm/ttm_resource.h header does not really need anything from
drm_print.h. A simple forward declaration for struct drm_printer is
sufficient.

An explicit drm_print.h include has previously been added to all the
files that indirectly depended on this include.

v3: Only remove the include here (Thomas)

Cc: Thomas Zimmermann <tzimmermann@suse.de>
Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://lore.kernel.org/r/cfdb1095033112c2a7e58767481c98929984a33c.1761734313.git.jani.nikula@intel.com
include/drm/ttm/ttm_resource.h

index f49daa504c36a30db1248c48c03027d5d1e18d48..68bf010d8b4024525b1c67f04cbb76318a8c02b9 100644 (file)
 #include <linux/iosys-map.h>
 #include <linux/dma-fence.h>
 
-#include <drm/drm_print.h>
 #include <drm/ttm/ttm_caching.h>
 #include <drm/ttm/ttm_kmap_iter.h>
 
 #define TTM_MAX_BO_PRIORITY    4U
 #define TTM_NUM_MEM_TYPES 9
 
+struct dentry;
 struct dmem_cgroup_device;
+struct drm_printer;
 struct ttm_device;
 struct ttm_resource_manager;
 struct ttm_resource;