diff options
author | Jani Nikula <jani.nikula@intel.com> | 2022-05-04 21:37:15 +0300 |
---|---|---|
committer | Jani Nikula <jani.nikula@intel.com> | 2022-05-09 14:16:29 +0300 |
commit | e9794c88cd6cf4be4a79188916a75539751f532c (patch) | |
tree | f31f041b8c2a829b74baef8c3fdc212cc097e9b3 /drivers/gpu/drm/i915/i915_gem.h | |
parent | 1b93ff4d0679190e8812cd0d0b3aebfcba1ed883 (diff) | |
download | linux-stable-e9794c88cd6cf4be4a79188916a75539751f532c.tar.gz linux-stable-e9794c88cd6cf4be4a79188916a75539751f532c.tar.bz2 linux-stable-e9794c88cd6cf4be4a79188916a75539751f532c.zip |
drm/i915: remove single-use GEM_DEBUG_EXEC()
Reduce the magic of what's going on in GEM_DEBUG_EXEC() by expanding it
inline and being explicit about it. It's as single use case anyway, so
the macro feels overkill.
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-2-jani.nikula@intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/i915_gem.h')
-rw-r--r-- | drivers/gpu/drm/i915/i915_gem.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/gpu/drm/i915/i915_gem.h b/drivers/gpu/drm/i915/i915_gem.h index b7b257f54d2e..a2be323a4be5 100644 --- a/drivers/gpu/drm/i915/i915_gem.h +++ b/drivers/gpu/drm/i915/i915_gem.h @@ -54,7 +54,6 @@ struct drm_i915_private; } while(0) #define GEM_WARN_ON(expr) WARN_ON(expr) -#define GEM_DEBUG_EXEC(expr) expr #define GEM_DEBUG_WARN_ON(expr) GEM_WARN_ON(expr) #else @@ -64,7 +63,6 @@ struct drm_i915_private; #define GEM_BUG_ON(expr) BUILD_BUG_ON_INVALID(expr) #define GEM_WARN_ON(expr) ({ unlikely(!!(expr)); }) -#define GEM_DEBUG_EXEC(expr) do { } while (0) #define GEM_DEBUG_WARN_ON(expr) ({ BUILD_BUG_ON_INVALID(expr); 0; }) #endif |