From: Jani Nikula Date: Wed, 29 Oct 2025 10:39:47 +0000 (+0200) Subject: drm/mm: replace drm_print.h include with a forward declaration X-Git-Tag: v6.19-rc1~157^2~16^2~54 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ea722522d505fa8fb3533a386adeb400607e5072;p=thirdparty%2Fkernel%2Fstable.git 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 Reviewed-by: Thomas Zimmermann Signed-off-by: Jani Nikula Link: https://lore.kernel.org/r/7d570ed1f0f0f14cac346bea50bce9ef02ddd166.1761734313.git.jani.nikula@intel.com --- diff --git a/include/drm/drm_mm.h b/include/drm/drm_mm.h index f654874c4ce67..16ce0e8f36a65 100644 --- a/include/drm/drm_mm.h +++ b/include/drm/drm_mm.h @@ -48,7 +48,7 @@ #endif #include -#include +struct drm_printer; #ifdef CONFIG_DRM_DEBUG_MM #define DRM_MM_BUG_ON(expr) BUG_ON(expr)