All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/print: Include drm_device.h
@ 2025-01-21 21:09 Gustavo Sousa
  2025-01-22 11:11 ` Simona Vetter
  2025-01-25 21:00 ` Lucas De Marchi
  0 siblings, 2 replies; 8+ messages in thread
From: Gustavo Sousa @ 2025-01-21 21:09 UTC (permalink / raw)
  To: dri-devel

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>
---
 include/drm/drm_print.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/include/drm/drm_print.h b/include/drm/drm_print.h
index f77fe1531cf8..9732f514566d 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;
-- 
2.48.1


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2025-01-25 21:00 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-21 21:09 [PATCH] drm/print: Include drm_device.h Gustavo Sousa
2025-01-22 11:11 ` Simona Vetter
2025-01-22 13:02   ` Gustavo Sousa
2025-01-22 14:02     ` Jani Nikula
2025-01-22 14:30       ` Gustavo Sousa
2025-01-22 14:49         ` Jani Nikula
2025-01-23 12:29           ` Simona Vetter
2025-01-25 21:00 ` Lucas De Marchi

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.