]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/i915: make intel_gvt.h self-contained
authorJani Nikula <jani.nikula@intel.com>
Wed, 26 Jun 2019 14:40:18 +0000 (17:40 +0300)
committerJani Nikula <jani.nikula@intel.com>
Thu, 27 Jun 2019 07:50:48 +0000 (10:50 +0300)
Add the minimal includes/declarations to make the header self-contained,
and ensure it stays that way.

Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190626144020.2155-12-jani.nikula@intel.com
drivers/gpu/drm/i915/Makefile.header-test
drivers/gpu/drm/i915/intel_gvt.h

index bb6a9234b74948e3eae892d7aa0d1e5cfcdfe8d9..4aa588d314a07cd09d4f5a61dfc132ad378d3dcd 100644 (file)
@@ -22,6 +22,7 @@ header_test := \
        intel_guc_ct.h \
        intel_guc_fwif.h \
        intel_guc_reg.h \
+       intel_gvt.h \
        intel_pm.h \
        intel_runtime_pm.h \
        intel_sideband.h \
index 61b24647028286bd82e533a744ea461cef114f48..85ce37eb7cd6edf94d3a2132fc47ef66ae7037f9 100644 (file)
@@ -24,7 +24,7 @@
 #ifndef _INTEL_GVT_H_
 #define _INTEL_GVT_H_
 
-struct intel_gvt;
+struct drm_i915_private;
 
 #ifdef CONFIG_DRM_I915_GVT
 int intel_gvt_init(struct drm_i915_private *dev_priv);