]> www.infradead.org Git - linux-platform-drivers-x86.git/commitdiff
drm/i915/gvt: make scheduler.h self-contained
authorJani Nikula <jani.nikula@intel.com>
Tue, 8 Dec 2020 10:29:13 +0000 (12:29 +0200)
committerZhenyu Wang <zhenyuw@linux.intel.com>
Tue, 22 Dec 2020 03:41:03 +0000 (11:41 +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/3949d345330155c6223ed947215b54c1285a0db5.1607422863.git.jani.nikula@intel.com
drivers/gpu/drm/i915/Makefile
drivers/gpu/drm/i915/gvt/scheduler.h

index b0045a3faf0e0a0380e112bb75cc0fab8948be73..38c6d8257b0bafd0ffb3b4bbb1f70e67a251ccf1 100644 (file)
@@ -284,8 +284,7 @@ obj-$(CONFIG_DRM_I915_GVT_KVMGT) += gvt/kvmgt.o
 # exclude some broken headers from the test coverage
 no-header-test := \
        display/intel_vbt_defs.h \
-       gvt/mpt.h \
-       gvt/scheduler.h
+       gvt/mpt.h
 
 extra-$(CONFIG_DRM_I915_WERROR) += \
        $(patsubst %.h,%.hdrtest, $(filter-out $(no-header-test), \
index 64e7a0b791c378e43827ddc9b72a7a6085b11b7b..7c86984a842f465f8fdaa75e0d548b796a95f58f 100644 (file)
 #ifndef _GVT_SCHEDULER_H_
 #define _GVT_SCHEDULER_H_
 
+#include "gt/intel_engine_types.h"
+
+#include "execlist.h"
+#include "interrupt.h"
+
 struct intel_gvt_workload_scheduler {
        struct intel_vgpu *current_vgpu;
        struct intel_vgpu *next_vgpu;