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 <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/b303996b407fcbe2c7357bea036f79c45d6dae49.1761734313.git.jani.nikula@intel.com
pull/1354/merge
Jani Nikula 2025-10-29 12:39:46 +02:00
parent f6e8dc9edf
commit 9695c143b7
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@
#include <linux/sched.h>
#include <linux/rbtree.h>
#include <drm/drm_print.h>
struct drm_printer;
#define DRM_BUDDY_RANGE_ALLOCATION BIT(0)
#define DRM_BUDDY_TOPDOWN_ALLOCATION BIT(1)