diff options
| author | Jani Nikula <[email protected]> | 2018-10-16 15:29:38 +0300 |
|---|---|---|
| committer | Jani Nikula <[email protected]> | 2018-10-17 09:56:56 +0300 |
| commit | 410ed5731a6566498a3aa904420aa2e49ba0ba90 (patch) | |
| tree | 87086435afa0e4c0aed19ac6de52ea4bd9482957 /tools/perf/scripts/python/bin/stackcollapse-report | |
| parent | 7b3e51dd439bead71d9e4504d89a32a8496ac0aa (diff) | |
drm/i915: Ensure intel_engine_init_execlist() builds with Clang
Clang build with UBSAN enabled leads to the following build error:
drivers/gpu/drm/i915/intel_engine_cs.o: In function `intel_engine_init_execlist':
drivers/gpu/drm/i915/intel_engine_cs.c:411: undefined reference to `__compiletime_assert_411'
Again, for this to work the code would first need to be inlined and then
constant folded, which doesn't work for Clang because semantic analysis
happens before optimization/inlining.
Use GEM_BUG_ON() instead of BUILD_BUG_ON().
v2: Use is_power_of_2() from log2.h (Chris)
References: http://mid.mail-archive.com/[email protected]
Reported-by: Stephen Boyd <[email protected]>
Cc: Stephen Boyd <[email protected]>
Cc: Chris Wilson <[email protected]>
Tested-by: Nathan Chancellor <[email protected]>
Tested-by: Stephen Boyd <[email protected]>
Reviewed-by: Chris Wilson <[email protected]>
Reviewed-by: Nick Desaulniers <[email protected]>
Signed-off-by: Jani Nikula <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions