[PATCH 16/86] drm/drm_print: Minimize include footprint
Sam Ravnborg via B4 Submission Endpoint
devnull+sam.ravnborg.org at kernel.org
Sat Jan 21 20:07:54 UTC 2023
From: Sam Ravnborg <sam at ravnborg.org>
Reduce drm_print.h to include or forward the minimal set of
files/symbols - to minimize the impact of the files that includes this
header file.
Signed-off-by: Sam Ravnborg <sam at ravnborg.org>
---
include/drm/drm_print.h | 11 +++++------
1 file changed, 5 insertions(+), 6 deletions(-)
diff --git a/include/drm/drm_print.h b/include/drm/drm_print.h
index c3753da97c4e..30673ee10190 100644
--- a/include/drm/drm_print.h
+++ b/include/drm/drm_print.h
@@ -26,14 +26,13 @@
#ifndef DRM_PRINT_H_
#define DRM_PRINT_H_
-#include <linux/compiler.h>
-#include <linux/printk.h>
-#include <linux/seq_file.h>
+#include <linux/dev_printk.h>
#include <linux/device.h>
-#include <linux/debugfs.h>
-#include <linux/dynamic_debug.h>
+#include <linux/printk.h>
-#include <drm/drm.h>
+struct debugfs_regset32;
+struct seq_file;
+struct device;
/* Do *not* use outside of drm_print.[ch]! */
extern unsigned long __drm_debug;
--
2.34.1
More information about the dri-devel
mailing list