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

index 8f617d5f5d592840f3a74e59f924a2430d8daada..2f802d5a37775f3351875c79ad0ae85197b21271 100644 (file)
@@ -8,6 +8,7 @@ header_test := \
        i915_drv.h \
        i915_fixed.h \
        i915_gem_gtt.h \
+       i915_globals.h \
        i915_irq.h \
        i915_params.h \
        i915_priolist_types.h \
index 04c1ce107fc066cde75c2e2cb9bd416006ac2121..2d199f411a4ab3001f095cdb024f33d75c5e67e0 100644 (file)
@@ -7,6 +7,8 @@
 #ifndef _I915_GLOBALS_H_
 #define _I915_GLOBALS_H_
 
+#include <linux/types.h>
+
 typedef void (*i915_global_func_t)(void);
 
 struct i915_global {