Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/ttm: replace drm_print.h include with a forward declaration

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

+2 -1
+2 -1
include/drm/ttm/ttm_resource.h
··· 31 31 #include <linux/iosys-map.h> 32 32 #include <linux/dma-fence.h> 33 33 34 - #include <drm/drm_print.h> 35 34 #include <drm/ttm/ttm_caching.h> 36 35 #include <drm/ttm/ttm_kmap_iter.h> 37 36 38 37 #define TTM_MAX_BO_PRIORITY 4U 39 38 #define TTM_NUM_MEM_TYPES 9 40 39 40 + struct dentry; 41 41 struct dmem_cgroup_device; 42 + struct drm_printer; 42 43 struct ttm_device; 43 44 struct ttm_resource_manager; 44 45 struct ttm_resource;