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

index 583fe76f2cdbfd060c26e086abc7832f23ba4752..bb6a9234b74948e3eae892d7aa0d1e5cfcdfe8d9 100644 (file)
@@ -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 \
index d90b88fadb5e5e10372a6c9a5cfe482e524879a8..a5ab7bc5504c7c983a6c718bf2d1ad4137a5c149 100644 (file)
 #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)