From: Jani Nikula Date: Wed, 29 Oct 2025 10:39:46 +0000 (+0200) Subject: drm/buddy: replace drm_print.h include with a forward declaration X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9695c143b72a7faa2dbbb2a5881269f82e6f9783;p=thirdparty%2Fkernel%2Flinux.git drm/buddy: replace drm_print.h include with a forward declaration The drm_buddy.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/b303996b407fcbe2c7357bea036f79c45d6dae49.1761734313.git.jani.nikula@intel.com --- diff --git a/include/drm/drm_buddy.h b/include/drm/drm_buddy.h index c2e05a2812522..b909fa8f810a0 100644 --- a/include/drm/drm_buddy.h +++ b/include/drm/drm_buddy.h @@ -12,7 +12,7 @@ #include #include -#include +struct drm_printer; #define DRM_BUDDY_RANGE_ALLOCATION BIT(0) #define DRM_BUDDY_TOPDOWN_ALLOCATION BIT(1)