diff options
author | 2018-08-29 11:45:21 +0200 | |
---|---|---|
committer | 2018-09-10 11:05:54 +0200 | |
commit | 7e6f4c5d600c1c8e2a1d900e65cab319d9b6782e (patch) | |
tree | 8084ab693c21ea0752f88531d684cb3bead1d2ae /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | sched/core: Disable SD_PREFER_SIBLING on asymmetric CPU capacity domains (diff) | |
download | linux-dev-7e6f4c5d600c1c8e2a1d900e65cab319d9b6782e.tar.xz linux-dev-7e6f4c5d600c1c8e2a1d900e65cab319d9b6782e.zip |
sched/debug: Explicitly cast sched_feat() to bool
LLVM has a warning that tags expressions like:
if (foo && non-bool-const)
This pattern triggers for CONFIG_SCHED_DEBUG=n where sched_feat() ends
up being whatever bit we select. Avoid the warning with an explicit
cast to bool.
Reported-by: Philipp Klocke <philipp97kl@gmail.com>
Tested-by: Nick Desaulniers <ndesaulniers@google.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions