summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGustavo Sousa <gustavo.sousa@intel.com>2025-01-22 00:09:25 +0300
committerLucas De Marchi <lucas.demarchi@intel.com>2025-01-25 23:55:55 +0300
commite0f63bc68f59d281e2d06e596f6c1bd9382a15cd (patch)
tree5c7a03705e94b813789b2ee8cfe8b30e4f75bb76
parent0a1ee19d46b71691c5acdf234bb6105913bd9add (diff)
downloadlinux-e0f63bc68f59d281e2d06e596f6c1bd9382a15cd.tar.xz
drm/print: Include drm_device.h
The header drm_print.h uses members of struct drm_device pointers, as such, it should include drm_device.h to let the compiler know the full type definition. Without such include, users of drm_print.h that don't explicitly need drm_device.h would bump into build errors and be forced to include the latter. Signed-off-by: Gustavo Sousa <gustavo.sousa@intel.com> Reviewed-by: Jani Nikula <jani.nikula@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20250121210935.84357-1-gustavo.sousa@intel.com Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
-rw-r--r--include/drm/drm_print.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/drm/drm_print.h b/include/drm/drm_print.h
index b3906dc04388..8d3e17d7554a 100644
--- a/include/drm/drm_print.h
+++ b/include/drm/drm_print.h
@@ -32,6 +32,7 @@
#include <linux/dynamic_debug.h>
#include <drm/drm.h>
+#include <drm/drm_device.h>
struct debugfs_regset32;
struct drm_device;