diff options
| author | Chris Wilson <[email protected]> | 2019-03-20 15:40:21 +0000 |
|---|---|---|
| committer | Chris Wilson <[email protected]> | 2019-03-21 09:59:29 +0000 |
| commit | ab7529f2441791cdfe6c8e3202f35f3e811985a6 (patch) | |
| tree | a8d2df07b82dcc5fe4dc8174e515eb2cf0a8d46d /tools/perf/scripts/python | |
| parent | 6ebc9692a7add632eb4d8ec3dcd1530bc4bbff08 (diff) | |
drm/i915: Use __is_constexpr()
gcc-4.8 and older dislike the use of __builtin_constant_p() within a
constant expression context, and so we must use the magical
__is_constexpr() instead.
For example, with gcc-4.8.5:
../drivers/gpu/drm/i915/i915_reg.h:167:27: error: first argument to ‘__builtin_choose_expr’ not a constant
../include/linux/build_bug.h:16:45: error: bit-field ‘<anonymous>’ width not an integer constant
Reported-by: Randy Dunlap <[email protected]>
Reported-by: Uma Shankar <[email protected]>
Fixes: baa09e7d2f42 ("drm/i915: use REG_FIELD_PREP() to define register bitfield values")
Signed-off-by: Chris Wilson <[email protected]>
Cc: Jani Nikula <[email protected]>
Cc: Imre Deak <[email protected]>
Cc: Randy Dunlap <[email protected]>
Acked-by: Randy Dunlap <[email protected]> # build-tested
Reviewed-by: Jani Nikula <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions