diff options
| author | Matthew Auld <[email protected]> | 2016-12-02 18:47:50 +0000 |
|---|---|---|
| committer | Chris Wilson <[email protected]> | 2016-12-05 20:49:17 +0000 |
| commit | 4cfa20c8345f04f0aa3ab5e33aa4487bbbcd8d9e (patch) | |
| tree | bbdc45147ddb1a27c8a9393f9e1f65ddf5908529 /tools/perf/scripts/python/bin/stackcollapse-record | |
| parent | 0798cff46bb2fc9ac24d5d465216db235a8f11f6 (diff) | |
drm/i915: allow GEM_BUG_ON expr checking with !DEBUG_GEM
Use BUILD_BUG_ON_INVALID(expr) in GEM_BUG_ON when building without
DEBUG_GEM. This means the compiler can now check the validity of expr
without generating any code, in turn preventing us from inadvertently
breaking the build when DEBUG_GEM is not enabled.
Cc: Chris Wilson <[email protected]>
Signed-off-by: Matthew Auld <[email protected]>
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
Reviewed-by: Chris Wilson <[email protected]>
Signed-off-by: Chris Wilson <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions