drm/i915: make intel_guc_ct.h self-contained
authorJani Nikula <jani.nikula@intel.com>
Wed, 26 Jun 2019 14:40:15 +0000 (17:40 +0300)
committerJani Nikula <jani.nikula@intel.com>
Thu, 27 Jun 2019 07:50:40 +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-9-jani.nikula@intel.com
drivers/gpu/drm/i915/Makefile.header-test
drivers/gpu/drm/i915/intel_guc_ct.h

index 1c2d426ea9135663429b016e1d928829b1c143ab..b296be256913e67eba33bcdac0e3dad1f7ba842c 100644 (file)
@@ -19,6 +19,7 @@ header_test := \
        i915_vgpu.h \
        intel_csr.h \
        intel_drv.h \
+       intel_guc_ct.h \
        intel_pm.h \
        intel_runtime_pm.h \
        intel_sideband.h \
index 0ec17493d83b51fdbae25c693eff2ecee6797b31..8c1f6d1331685fc8e44cfa1a5e4f8c4e8d6c6a7f 100644 (file)
 #ifndef _INTEL_GUC_CT_H_
 #define _INTEL_GUC_CT_H_
 
-struct intel_guc;
-struct i915_vma;
+#include <linux/spinlock.h>
+#include <linux/workqueue.h>
 
 #include "intel_guc_fwif.h"
 
+struct i915_vma;
+struct intel_guc;
+
 /**
  * DOC: Command Transport (CT).
  *