drm/i915: remove unused GEM_DEBUG_DECL() and GEM_DEBUG_BUG_ON()
authorJani Nikula <jani.nikula@intel.com>
Wed, 4 May 2022 18:37:14 +0000 (21:37 +0300)
committerJani Nikula <jani.nikula@intel.com>
Mon, 9 May 2022 11:16:20 +0000 (14:16 +0300)
There are already too many choices here, take away the unused ones.

Cc: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220504183716.987793-1-jani.nikula@intel.com
drivers/gpu/drm/i915/i915_gem.h

index d0752e5553db4beb1493467e07dbb9ffd5ec9602..b7b257f54d2e2abbc7146191ea91058678b9e487 100644 (file)
@@ -54,9 +54,7 @@ struct drm_i915_private;
        } while(0)
 #define GEM_WARN_ON(expr) WARN_ON(expr)
 
-#define GEM_DEBUG_DECL(var) var
 #define GEM_DEBUG_EXEC(expr) expr
-#define GEM_DEBUG_BUG_ON(expr) GEM_BUG_ON(expr)
 #define GEM_DEBUG_WARN_ON(expr) GEM_WARN_ON(expr)
 
 #else
@@ -66,9 +64,7 @@ struct drm_i915_private;
 #define GEM_BUG_ON(expr) BUILD_BUG_ON_INVALID(expr)
 #define GEM_WARN_ON(expr) ({ unlikely(!!(expr)); })
 
-#define GEM_DEBUG_DECL(var)
 #define GEM_DEBUG_EXEC(expr) do { } while (0)
-#define GEM_DEBUG_BUG_ON(expr)
 #define GEM_DEBUG_WARN_ON(expr) ({ BUILD_BUG_ON_INVALID(expr); 0; })
 #endif