]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/i915: make i915_utils.h self-contained
authorJani Nikula <jani.nikula@intel.com>
Thu, 2 May 2019 15:02:45 +0000 (18:02 +0300)
committerJani Nikula <jani.nikula@intel.com>
Fri, 3 May 2019 07:06:48 +0000 (10:06 +0300)
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/69bcebefa6d8689d4a962394b0c6db04904354ed.1556809195.git.jani.nikula@intel.com
drivers/gpu/drm/i915/Makefile.header-test
drivers/gpu/drm/i915/i915_utils.h

index b61fd8397dd2ed62fd558c2398a59fabebc0ed52..f71ea7f2976f133b427d1ac0c3beaecd2aab07c2 100644 (file)
@@ -14,6 +14,7 @@ header_test := \
        i915_reg.h \
        i915_scheduler_types.h \
        i915_timeline_types.h \
+       i915_utils.h \
        intel_acpi.h \
        intel_atomic.h \
        intel_atomic_plane.h \
index 2dbe8933b50a1796b43446d81b4361f846316d69..26117bf7da0c0380ab746898ed66dccf1d55f36b 100644 (file)
 #ifndef __I915_UTILS_H
 #define __I915_UTILS_H
 
+#include <linux/list.h>
+#include <linux/types.h>
+#include <linux/workqueue.h>
+
 #undef WARN_ON
 /* Many gcc seem to no see through this and fall over :( */
 #if 0
@@ -152,8 +156,6 @@ static inline u64 ptr_to_u64(const void *ptr)
        __idx;                                                          \
 })
 
-#include <linux/list.h>
-
 static inline void __list_del_many(struct list_head *head,
                                   struct list_head *first)
 {