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

While at it, also remove a useless forward declaration.

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/46c2acf80f1d214182a96a97fa6322ab89a3de05.1607422863.git.jani.nikula@intel.com
drivers/gpu/drm/i915/Makefile
drivers/gpu/drm/i915/gvt/fb_decoder.h

index 40253c45f705cc43025bc35111bbd344a4f8743a..c22fff634d18f65ba00ce5b4c0262e4f43b240f2 100644 (file)
@@ -284,7 +284,6 @@ 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/fb_decoder.h \
        gvt/gtt.h \
        gvt/gvt.h \
        gvt/interrupt.h \
index 67b6ede9e707c8111d8575fa96c9ecf1a9b71238..0daa3931aef739c2d70be185003433f692258916 100644 (file)
 
 #include <linux/types.h>
 
+#include "display/intel_display.h"
+
+struct intel_vgpu;
+
 #define _PLANE_CTL_FORMAT_SHIFT                24
 #define _PLANE_CTL_TILED_SHIFT         10
 #define _PIPE_V_SRCSZ_SHIFT            0
@@ -98,8 +102,6 @@ enum DDI_PORT {
        DDI_PORT_E      = 4
 };
 
-struct intel_gvt;
-
 /* color space conversion and gamma correction are not included */
 struct intel_vgpu_primary_plane_format {
        u8      enabled;        /* plane is enabled */