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

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

The drm_mm.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/7d570ed1f0f0f14cac346bea50bce9ef02ddd166.1761734313.git.jani.nikula@intel.com

+1 -1
+1 -1
include/drm/drm_mm.h
··· 48 48 #endif 49 49 #include <linux/types.h> 50 50 51 - #include <drm/drm_print.h> 51 + struct drm_printer; 52 52 53 53 #ifdef CONFIG_DRM_DEBUG_MM 54 54 #define DRM_MM_BUG_ON(expr) BUG_ON(expr)