Skip to content

Commit

Permalink
drm/drm_print: Minimize include footprint
Browse files Browse the repository at this point in the history
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@ravnborg.org>
  • Loading branch information
sravnborg authored and intel-lab-lkp committed Jan 21, 2023
1 parent 4523f05 commit 530d852
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions include/drm/drm_print.h
Expand Up @@ -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;
Expand Down

0 comments on commit 530d852

Please sign in to comment.