]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/mm: replace drm_print.h include with a forward declaration
authorJani Nikula <jani.nikula@intel.com>
Wed, 29 Oct 2025 10:39:47 +0000 (12:39 +0200)
committerJani Nikula <jani.nikula@intel.com>
Fri, 31 Oct 2025 08:34:56 +0000 (10:34 +0200)
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
include/drm/drm_mm.h

index f654874c4ce67f6baf2492a69347e1d294503cf4..16ce0e8f36a6592aa8031bdd2433ff598bd62b47 100644 (file)
@@ -48,7 +48,7 @@
 #endif
 #include <linux/types.h>
 
-#include <drm/drm_print.h>
+struct drm_printer;
 
 #ifdef CONFIG_DRM_DEBUG_MM
 #define DRM_MM_BUG_ON(expr) BUG_ON(expr)