summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJani Nikula <jani.nikula@intel.com>2025-10-29 13:39:46 +0300
committerJani Nikula <jani.nikula@intel.com>2025-10-31 11:34:55 +0300
commit9695c143b72a7faa2dbbb2a5881269f82e6f9783 (patch)
tree11953180ee21af5b54141ca10150ff417972087b /include
parentf6e8dc9edf963dbc99085e54f6ced6da9daa6100 (diff)
downloadlinux-9695c143b72a7faa2dbbb2a5881269f82e6f9783.tar.xz
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
Diffstat (limited to 'include')
-rw-r--r--include/drm/drm_buddy.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/drm/drm_buddy.h b/include/drm/drm_buddy.h
index c2e05a281252..b909fa8f810a 100644
--- a/include/drm/drm_buddy.h
+++ b/include/drm/drm_buddy.h
@@ -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)