Skip to content

Commit e0f63bc

Browse files
guludolucasdemarchi
authored andcommitted
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 <[email protected]> Reviewed-by: Jani Nikula <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected] Signed-off-by: Lucas De Marchi <[email protected]>
1 parent 0a1ee19 commit e0f63bc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

include/drm/drm_print.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
#include <linux/dynamic_debug.h>
3333

3434
#include <drm/drm.h>
35+
#include <drm/drm_device.h>
3536

3637
struct debugfs_regset32;
3738
struct drm_device;

0 commit comments

Comments
 (0)