[PATCH 16/86] drm/drm_print: Minimize include footprint

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Sam Ravnborg <sam@xxxxxxxxxxxx>

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@xxxxxxxxxxxx>
---
 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




[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux