Re: [PATCH 3/3] powerpc: fix -Wimplicit-fallthrough

From
Michael Ellerman <mpe@ellerman.id.au>
Date
2020-11-17 23:46:59
Also in
lkml
Reply to
Nick Desaulniers, 2020-11-16
Nick Desaulniers [off-list ref] writes:
The "fallthrough" pseudo-keyword was added as a portable way to denote
intentional fallthrough. Clang will still warn on cases where there is a
fallthrough to an immediate break. Add explicit breaks for those cases.

Link: https://github.com/ClangBuiltLinux/linux/issues/236
Signed-off-by: Nick Desaulniers <ndesaulniers@google.com>
---
 arch/powerpc/kernel/prom_init.c | 1 +
 arch/powerpc/kernel/uprobes.c   | 1 +
 arch/powerpc/perf/imc-pmu.c     | 1 +
 3 files changed, 3 insertions(+)
Acked-by: Michael Ellerman <mpe@ellerman.id.au>

cheers
Thread (23 messages) 23 messages, 7 authors, last reply 2020-11-17
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help