aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorPeter Zijlstra <peterz@infradead.org>2021-10-06 10:12:05 +0200
committerPeter Zijlstra <peterz@infradead.org>2021-10-06 10:30:57 +0200
commit769fdf83df57b373660343ef4270b3ada91ef434 (patch)
tree5e5c6c358455c465750908d8a9a6e888b4e34ff1 /tools/perf/scripts/python/stackcollapse.py
parenta7ba894821b6ade7bb420455f87020b2838d6180 (diff)
downloadlinux-769fdf83df57b373660343ef4270b3ada91ef434.tar.gz
linux-769fdf83df57b373660343ef4270b3ada91ef434.tar.bz2
linux-769fdf83df57b373660343ef4270b3ada91ef434.zip
sched: Fix DEBUG && !SCHEDSTATS warn
When !SCHEDSTATS schedstat_enabled() is an unconditional 0 and the whole block doesn't exist, however GCC figures the scoped variable 'stats' is unused and complains about it. Upgrade the warning from -Wunused-variable to -Wunused-but-set-variable by writing it in two statements. This fixes the build because the new warning is in W=1. Given that whole if(0) {} thing, I don't feel motivated to change things overly much and quite strongly feel this is the compiler being daft. Fixes: cb3e971c435d ("sched: Make struct sched_statistics independent of fair sched class") Reported-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions