diff options
author | Chris Wilson <[email protected]> | 2019-10-25 14:59:42 +0100 |
---|---|---|
committer | Chris Wilson <[email protected]> | 2019-10-26 09:25:25 +0100 |
commit | babaab2f473817f173a2d08e410c25abf5ed0f6b (patch) | |
tree | 11baa146d214cf45ab69487e518cc29d4898bd7f /tools/perf/scripts/python/syscall-counts.py | |
parent | 2d69c42e373fa1ae2d4e27f7b11e61978d07c6d3 (diff) |
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 <[email protected]>
Signed-off-by: Chris Wilson <[email protected]>
Cc: Nathan Chancellor <[email protected]>
Cc: Nick Desaulniers <[email protected]>
Cc: Jani Nikula <[email protected]>
Reviewed-by: Nathan Chancellor <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions