drm/i915: Rename conditional GEM execution macros
After a brief discussion, we settled on a naming convention for the conditional GEM debugging data that should be clearer to the casual user: GEM_DEBUG Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com> Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com> Cc: Mika Kuoppala <mika.kuoppala@intel.com> Link: http://patchwork.freedesktop.org/patch/msgid/20170207102319.10910-1-chris@chris-wilson.co.uk Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
This commit is contained in:
@@ -29,17 +29,17 @@
|
||||
#define GEM_BUG_ON(expr) BUG_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)
|
||||
#define GEM_DEBUG_DECL(var) var
|
||||
#define GEM_DEBUG_EXEC(expr) expr
|
||||
#define GEM_DEBUG_BUG_ON(expr) GEM_BUG_ON(expr)
|
||||
|
||||
#else
|
||||
#define GEM_BUG_ON(expr) BUILD_BUG_ON_INVALID(expr)
|
||||
#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)
|
||||
#define GEM_DEBUG_DECL(var)
|
||||
#define GEM_DEBUG_EXEC(expr) do { } while (0)
|
||||
#define GEM_DEBUG_BUG_ON(expr)
|
||||
#endif
|
||||
|
||||
#define I915_NUM_ENGINES 5
|
||||
|
||||
Reference in New Issue
Block a user