lib/siphash.c: mark expected switch fall-throughs
authorStephen Rothwell <sfr@canb.auug.org.au>
Tue, 16 Apr 2019 07:27:20 +0000 (17:27 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Apr 2019 17:47:24 +0000 (19:47 +0200)
commitba2e544075c282a5bb21df7752efad3b42d6077b
treefc81c9eb298ff422f10d5686756e3a807675b663
parentae0c2d725512f32a0d1a25f0cf2f07616d33a72e
lib/siphash.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 up to 18 missing-break-in-switch false
positives on some architectures.

Cc: Gustavo A. R. Silva <gustavo@embeddedor.com>
Cc: Kees Cook <keescook@chromium.org>
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
Reviewed-by: Jason A. Donenfeld <Jason@zx2c4.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
lib/siphash.c