kernel/compat.c: mark expected switch fall-throughs
authorStephen Rothwell <sfr@canb.auug.org.au>
Wed, 15 May 2019 05:23:52 +0000 (15:23 +1000)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 15 May 2019 15:16:14 +0000 (08:16 -0700)
commit89963adcdb430e047f4c03ac3ed6ce9aa42a595c
treee14a1da3e87b2d538dfbb3f97afe60af46dbe395
parent5ac94332248ee017964ba368cdda4ce647e3aba7
kernel/compat.c: mark expected switch fall-throughs

In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.

This patch aims to suppress 3 missing-break-in-switch false positives
on some architectures.

Acked-by: Arnd Bergmann <arnd@arndb.de>
Cc: Deepa Dinamani <deepa.kernel@gmail.com>
Cc: Gustavo A. R. Silva <gustavo@embeddedor.com>
Cc: Kees Cook <keescook@chromium.org>
Cc: Jann Horn <jannh@google.com>
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/compat.c