]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/print: Include drm_device.h
authorGustavo Sousa <gustavo.sousa@intel.com>
Tue, 21 Jan 2025 21:09:25 +0000 (18:09 -0300)
committerLucas De Marchi <lucas.demarchi@intel.com>
Sat, 25 Jan 2025 20:55:55 +0000 (12:55 -0800)
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>
include/drm/drm_print.h

index b3906dc043886bf141675c2dc7f867a4a0710051..8d3e17d7554a878d1535dd6554174013d75f68f4 100644 (file)
@@ -32,6 +32,7 @@
 #include <linux/dynamic_debug.h>
 
 #include <drm/drm.h>
+#include <drm/drm_device.h>
 
 struct debugfs_regset32;
 struct drm_device;