Warn whenever a switch statement has a fallthrough without a comment annotating it.
Signed-off-by: Michael Ellerman <m...@ellerman.id.au> --- arch/powerpc/Kbuild | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/powerpc/Kbuild b/arch/powerpc/Kbuild index 86b261d6bde5..ef625f1db576 100644 --- a/arch/powerpc/Kbuild +++ b/arch/powerpc/Kbuild @@ -1,4 +1,5 @@ subdir-ccflags-y := $(call cc-option, -Wvla) +subdir-ccflags-y += $(call cc-option, -Wimplicit-fallthrough) subdir-ccflags-$(CONFIG_PPC_WERROR) += -Werror obj-y += kernel/ -- 2.17.1