summaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorJani Nikula <jani.nikula@intel.com>2019-05-24 21:52:53 +0300
committerJani Nikula <jani.nikula@intel.com>2019-05-27 13:08:37 +0300
commit591d4dc4729004e98509efd1d23b8d8bf0111182 (patch)
treeb5dd7b374e238cc6c47cb7a442042e1190d3adcf /tools/perf/scripts/python
parentc2df2201b6933e927de24742a314ba2e0d13efd2 (diff)
downloadlinux-591d4dc4729004e98509efd1d23b8d8bf0111182.tar.gz
linux-591d4dc4729004e98509efd1d23b8d8bf0111182.zip
drm/i915: make REG_BIT() and REG_GENMASK() work with variables
REG_BIT() and REG_GENMASK() were intended to work with both constant expressions and otherwise, with the former having extra compile time checks for the bit ranges. Incredibly, the result of __builtin_constant_p() is not an integer constant expression when given a non-constant expression, leading to errors in BUILD_BUG_ON_ZERO(). Replace __builtin_constant_p() with the __is_constexpr() magic spell. Reported-by: Ville Syrjala <ville.syrjala@linux.intel.com> Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Jani Nikula <jani.nikula@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20190524185253.1088-1-jani.nikula@intel.com
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions