diff options
author | 2016-11-08 14:58:17 +0100 | |
---|---|---|
committer | 2016-11-08 17:33:47 +0100 | |
commit | 71d5895aac0cc4c6f02942efe3b3188560cb7147 (patch) | |
tree | 8257f66c54dc8893b278408daf346526b304a35b /tools/perf/scripts/python/export-to-postgresql.py | |
parent | Merge tag 'gvt-next-2016-11-07' of https://github.com/01org/gvt-linux into drm-intel-next-queued (diff) | |
download | linux-dev-71d5895aac0cc4c6f02942efe3b3188560cb7147.tar.xz linux-dev-71d5895aac0cc4c6f02942efe3b3188560cb7147.zip |
drm/i915: avoid harmless empty-body warning
The newly added assert_kernel_context_is_current introduces a warning
when built with W=1:
drivers/gpu/drm/i915/i915_gem.c: In function ‘assert_kernel_context_is_current’:
drivers/gpu/drm/i915/i915_gem.c:4417:63: error: suggest braces around empty body in an ‘else’ statement [-Werror=empty-body]
Changing the GEM_BUG_ON() macro from an empty definition to "do { } while (0)"
makes the macro more robust to use and avoids the warning.
Fixes: 3033acab07f9 ("drm/i915: Queue the idling context switch after all other timelines")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/20161108135834.2166677-1-arnd@arndb.de
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions