aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/event_analyzing_sample.py
diff options
context:
space:
mode:
authorGustavo A. R. Silva <[email protected]>2022-09-16 15:15:04 +0100
committerMichael Ellerman <[email protected]>2022-11-24 23:31:47 +1100
commit1c4a4a4c8410be4a231a58b23e7a30923ff954ac (patch)
treecde9533d4e3b5bbd2fdf734f45f8b499a90e25f3 /tools/perf/scripts/python/event_analyzing_sample.py
parent4ac9d3187cc7ccba25f76a3faef3e08a366f77b9 (diff)
powerpc/xmon: Fix -Wswitch-unreachable warning in bpt_cmds
When building with automatic stack variable initialization, GCC 12 complains about variables defined outside of switch case statements. Move the variable into the case that uses it, which silences the warning: arch/powerpc/xmon/xmon.c: In function ‘bpt_cmds’: arch/powerpc/xmon/xmon.c:1529:13: warning: statement will never be executed [-Wswitch-unreachable] 1529 | int mode; | ^~~~ Fixes: 09b6c1129f89 ("powerpc/xmon: Fix compile error with PPC_8xx=y") Signed-off-by: Gustavo A. R. Silva <[email protected]> Reviewed-by: Kees Cook <[email protected]> Signed-off-by: Michael Ellerman <[email protected]> Link: https://lore.kernel.org/r/YySE6FHiOcbWWR+9@work
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions