summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJani Nikula <jani.nikula@intel.com>2019-06-26 17:40:17 +0300
committerJani Nikula <jani.nikula@intel.com>2019-06-27 10:50:45 +0300
commit5e0cca98b4d154e235abbb29f7edda5e6b4f4b60 (patch)
treedf4c25df755b27e73fe618c6cc5f2b5952b55a8b
parent72629d11d56c44ddaae273dd513319a1fb5c03bd (diff)
downloadlinux-5e0cca98b4d154e235abbb29f7edda5e6b4f4b60.tar.bz2
drm/i915: make intel_guc_reg.h self-contained
Add the minimal includes/declarations to make the header self-contained, and ensure it stays that way. v2: also include i915_reg.h (Michal) 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-11-jani.nikula@intel.com
-rw-r--r--drivers/gpu/drm/i915/Makefile.header-test1
-rw-r--r--drivers/gpu/drm/i915/intel_guc_reg.h5
2 files changed, 6 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/Makefile.header-test b/drivers/gpu/drm/i915/Makefile.header-test
index 583fe76f2cdb..bb6a9234b749 100644
--- a/drivers/gpu/drm/i915/Makefile.header-test
+++ b/drivers/gpu/drm/i915/Makefile.header-test
@@ -21,6 +21,7 @@ header_test := \
intel_drv.h \
intel_guc_ct.h \
intel_guc_fwif.h \
+ intel_guc_reg.h \
intel_pm.h \
intel_runtime_pm.h \
intel_sideband.h \
diff --git a/drivers/gpu/drm/i915/intel_guc_reg.h b/drivers/gpu/drm/i915/intel_guc_reg.h
index d90b88fadb5e..a5ab7bc5504c 100644
--- a/drivers/gpu/drm/i915/intel_guc_reg.h
+++ b/drivers/gpu/drm/i915/intel_guc_reg.h
@@ -24,6 +24,11 @@
#ifndef _INTEL_GUC_REG_H_
#define _INTEL_GUC_REG_H_
+#include <linux/compiler.h>
+#include <linux/types.h>
+
+#include "i915_reg.h"
+
/* Definitions of GuC H/W registers, bits, etc */
#define GUC_STATUS _MMIO(0xc000)