drm/i915/gvt: make mmio_context.h self-contained
authorJani Nikula <jani.nikula@intel.com>
Tue, 8 Dec 2020 10:29:11 +0000 (12:29 +0200)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Tue, 22 Dec 2020 03:40:19 +0000 (11:40 +0800)
Add necessary #includes and forward declarations to make the header
compile on its own.

Reviewed-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/979ba0ea394e9589f7332b94e91ac200faf995c5.1607422863.git.jani.nikula@intel.com
drivers/gpu/drm/i915/Makefile
drivers/gpu/drm/i915/gvt/mmio_context.h

index 082c0629f2907e007ac14a321f7b3bfe248efa99..f91b5fd13efff56606363c3d4b7844a8a96baf77 100644 (file)
@@ -285,7 +285,6 @@ obj-$(CONFIG_DRM_I915_GVT_KVMGT) += gvt/kvmgt.o
 no-header-test := \
        display/intel_vbt_defs.h \
        gvt/gvt.h \
-       gvt/mmio_context.h \
        gvt/mpt.h \
        gvt/scheduler.h
 
index 3b25e7fe32f6fad5d8fa786c38b5e5ba28565932..1421d3a704126fd1e85f33eda1b41ab7643a14cd 100644 (file)
 #ifndef __GVT_RENDER_H__
 #define __GVT_RENDER_H__
 
+#include <linux/types.h>
+
+#include "gt/intel_engine_types.h"
+#include "i915_reg.h"
+
+struct i915_request;
+struct intel_context;
+struct intel_engine_cs;
+struct intel_gvt;
+struct intel_vgpu;
+
 struct engine_mmio {
        enum intel_engine_id id;
        i915_reg_t reg;