drm/i915/gvt: make interrupt.h self-contained
authorJani Nikula <jani.nikula@intel.com>
Tue, 8 Dec 2020 10:29:10 +0000 (12:29 +0200)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Tue, 22 Dec 2020 03:39:53 +0000 (11:39 +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/3a1060d0e9b951d76815745f466efc17a7c85741.1607422863.git.jani.nikula@intel.com
drivers/gpu/drm/i915/Makefile
drivers/gpu/drm/i915/gvt/interrupt.h

index 33fdcd81e35291b2975765f0e30374191cf1d16f..082c0629f2907e007ac14a321f7b3bfe248efa99 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/interrupt.h \
        gvt/mmio_context.h \
        gvt/mpt.h \
        gvt/scheduler.h
index fcd663811d3706e524d73c1afa4f23be93f71bb8..287cd142629ee1b1ac3e630732770c65356d5129 100644 (file)
 #ifndef _GVT_INTERRUPT_H_
 #define _GVT_INTERRUPT_H_
 
-#include <linux/types.h>
+#include <linux/hrtimer.h>
+#include <linux/kernel.h>
+
+#include "i915_reg.h"
 
 enum intel_gvt_event_type {
        RCS_MI_USER_INTERRUPT = 0,