@@ -5,6 +5,9 @@
#define pr_fmt(fmt) "[drm:%s:%d] " fmt, __func__, __LINE__
+#include <linux/devcoredump.h>
+
+#include "msm_kms.h"
#include "msm_disp_snapshot.h"
static ssize_t __maybe_unused disp_devcoredump_read(char *buffer, loff_t offset,
@@ -6,28 +6,9 @@
#ifndef MSM_DISP_SNAPSHOT_H_
#define MSM_DISP_SNAPSHOT_H_
-#include <drm/drm_atomic_helper.h>
#include <drm/drm_device.h>
-#include "../../../drm_crtc_internal.h"
#include <drm/drm_print.h>
-#include <drm/drm_atomic.h>
-#include <linux/debugfs.h>
-#include <linux/list.h>
-#include <linux/delay.h>
-#include <linux/spinlock.h>
-#include <linux/ktime.h>
-#include <linux/debugfs.h>
-#include <linux/uaccess.h>
-#include <linux/dma-buf.h>
-#include <linux/slab.h>
-#include <linux/list_sort.h>
-#include <linux/pm.h>
-#include <linux/pm_runtime.h>
-#include <linux/kthread.h>
-#include <linux/devcoredump.h>
#include <linux/dump_state.h>
-#include <stdarg.h>
-#include "msm_kms.h"
#define MSM_DISP_SNAPSHOT_MAX_BLKS 10
@@ -5,6 +5,14 @@
#define pr_fmt(fmt) "[drm:%s:%d] " fmt, __func__, __LINE__
+#include <drm/drm_atomic_helper.h>
+#include <drm/drm_print.h>
+#include <linux/io.h>
+
+#include "../../../drm_crtc_internal.h"
+
+#include "msm_kms.h"
+#include "dsi.h"
#include "msm_disp_snapshot.h"
static void msm_disp_state_dump_regs(u32 *dump_addr, size_t aligned_len, void __iomem *base_addr)
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> --- drivers/gpu/drm/msm/disp/msm_disp_snapshot.c | 3 +++ drivers/gpu/drm/msm/disp/msm_disp_snapshot.h | 19 ------------------- .../gpu/drm/msm/disp/msm_disp_snapshot_util.c | 8 ++++++++ 3 files changed, 11 insertions(+), 19 deletions(-) -- 2.30.2