drm/i915: move add_taint_for_CI() to i915_utils.h
authorJani Nikula <jani.nikula@intel.com>
Thu, 8 Aug 2019 13:42:41 +0000 (16:42 +0300)
committerJani Nikula <jani.nikula@intel.com>
Fri, 9 Aug 2019 08:42:03 +0000 (11:42 +0300)
Seems like a better fit. Reduce clutter in i915_drv.h.

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/a82d8c4e95496b3b4a9a251b655ea56a35c9d752.1565271681.git.jani.nikula@intel.com
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_utils.h

index 855d1b6fabe892bbe38f7316418dcffc079d4930..3308ae6202e066cf721188785e92a08ce9d0cf6a 100644 (file)
@@ -2654,15 +2654,4 @@ i915_coherent_map_type(struct drm_i915_private *i915)
        return HAS_LLC(i915) ? I915_MAP_WB : I915_MAP_WC;
 }
 
-static inline void add_taint_for_CI(unsigned int taint)
-{
-       /*
-        * The system is "ok", just about surviving for the user, but
-        * CI results are now unreliable as the HW is very suspect.
-        * CI checks the taint state after every test and will reboot
-        * the machine if the kernel is tainted.
-        */
-       add_taint(taint, LOCKDEP_STILL_OK);
-}
-
 #endif
index 4920ff9aba62abcbc8f5ee61a0c485b1b9094eda..0c0fda36334d575bcba74554d851da074257de3a 100644 (file)
@@ -382,4 +382,15 @@ static inline const char *enableddisabled(bool v)
        return v ? "enabled" : "disabled";
 }
 
+static inline void add_taint_for_CI(unsigned int taint)
+{
+       /*
+        * The system is "ok", just about surviving for the user, but
+        * CI results are now unreliable as the HW is very suspect.
+        * CI checks the taint state after every test and will reboot
+        * the machine if the kernel is tainted.
+        */
+       add_taint(taint, LOCKDEP_STILL_OK);
+}
+
 #endif /* !__I915_UTILS_H */