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

index b1c3e642f621512e3f12d634519d17b99464e172..8f617d5f5d592840f3a74e59f924a2430d8daada 100644 (file)
@@ -6,6 +6,7 @@ header_test := \
        i915_active_types.h \
        i915_debugfs.h \
        i915_drv.h \
+       i915_fixed.h \
        i915_gem_gtt.h \
        i915_irq.h \
        i915_params.h \
index 6621595fe74ca5a3c0f2217caa8021ff3b6d2a16..a327094de2bd7e5d3576d9888cfae8ea40549fdb 100644 (file)
@@ -6,6 +6,11 @@
 #ifndef _I915_FIXED_H_
 #define _I915_FIXED_H_
 
+#include <linux/bug.h>
+#include <linux/kernel.h>
+#include <linux/math64.h>
+#include <linux/types.h>
+
 typedef struct {
        u32 val;
 } uint_fixed_16_16_t;