aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2019-10-25 14:59:42 +0100
committerChris Wilson <chris@chris-wilson.co.uk>2019-10-26 09:25:25 +0100
commitbabaab2f473817f173a2d08e410c25abf5ed0f6b (patch)
tree11baa146d214cf45ab69487e518cc29d4898bd7f /tools/perf/scripts/python
parentdrm/i915/tc: Clear DKL_TX_PMD_LANE_SUS before program voltage swing (diff)
downloadlinux-babaab2f473817f173a2d08e410c25abf5ed0f6b.tar.gz
linux-babaab2f473817f173a2d08e410c25abf5ed0f6b.zip
drm/i915: Encapsulate kconfig constant values inside boolean predicates
Avoid angering clang and smatch by using a constant value in a '&&' test, by forcing that constant value into a boolean. E.g., drivers/gpu/drm/i915/gt/intel_engine_heartbeat.c:159:13: warning: use of logical '&&' with constant operand [-Wconstant-logical-operand] if (!delay && CONFIG_DRM_I915_PREEMPT_TIMEOUT) { ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Reported-by: kbuild test robot <lkp@intel.com> Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Cc: Nathan Chancellor <natechancellor@gmail.com> Cc: Nick Desaulniers <ndesaulniers@google.com> Cc: Jani Nikula <jani.nikula@intel.com> Reviewed-by: Nathan Chancellor <natechancellor@gmail.com> Link: https://patchwork.freedesktop.org/patch/msgid/20191025135943.12524-1-chris@chris-wilson.co.uk
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions