|
@@ -28,9 +28,18 @@
|
|
#ifdef CONFIG_DRM_I915_DEBUG_GEM
|
|
#ifdef CONFIG_DRM_I915_DEBUG_GEM
|
|
#define GEM_BUG_ON(expr) BUG_ON(expr)
|
|
#define GEM_BUG_ON(expr) BUG_ON(expr)
|
|
#define GEM_WARN_ON(expr) WARN_ON(expr)
|
|
#define GEM_WARN_ON(expr) WARN_ON(expr)
|
|
|
|
+
|
|
|
|
+#define GEM_BUG_ONLY(expr) expr
|
|
|
|
+#define GEM_BUG_ONLY_DECLARE(var) var
|
|
|
|
+#define GEM_BUG_ONLY_ON(expr) GEM_BUG_ON(expr)
|
|
|
|
+
|
|
#else
|
|
#else
|
|
#define GEM_BUG_ON(expr) BUILD_BUG_ON_INVALID(expr)
|
|
#define GEM_BUG_ON(expr) BUILD_BUG_ON_INVALID(expr)
|
|
#define GEM_WARN_ON(expr) (BUILD_BUG_ON_INVALID(expr), 0)
|
|
#define GEM_WARN_ON(expr) (BUILD_BUG_ON_INVALID(expr), 0)
|
|
|
|
+
|
|
|
|
+#define GEM_BUG_ONLY(expr) do { } while (0)
|
|
|
|
+#define GEM_BUG_ONLY_DECLARE(var)
|
|
|
|
+#define GEM_BUG_ONLY_ON(expr)
|
|
#endif
|
|
#endif
|
|
|
|
|
|
#define I915_NUM_ENGINES 5
|
|
#define I915_NUM_ENGINES 5
|