Thread (6 messages) flat view 6 messages, 4 authors, 2018-10-04

Re: [PATCH] powerpc/perf: Add missing break in power7_marked_instr_event()

From: Michael Ellerman <mpe@ellerman.id.au>
Date: 2018-09-24 07:03:22

Segher Boessenkool [off-list ref] writes:
On Thu, Sep 20, 2018 at 03:29:22PM +0530, Madhavan Srinivasan wrote:
quoted
On Thursday 20 September 2018 03:11 PM, Michael Ellerman wrote:
quoted
In power7_marked_instr_event() there is a switch case that is missing
a break or an explicit fallthrough, it's not immediately clear which
it should be.
quoted
Just curious to know, how did you find this. Static code checker compiled
or any specific compiler warnings or just by code read?
Newer GCC warns about suspicious fallthroughs (-Wimplicit-fallthrough,
which is in -Wextra).
Yeah I actually turned -Wimplicit-fallthrough on manually.

I'm hoping to add that to our CFLAGS once I've merged this fix and
worked out the Kbuild magic to add it to CFLAGS just for arch/powerpc.

cheers
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help