lib: Fix fall-through warnings for Clang
authorGustavo A. R. Silva <gustavoars@kernel.org>
Thu, 19 Nov 2020 13:11:44 +0000 (07:11 -0600)
committerGustavo A. R. Silva <gustavoars@kernel.org>
Thu, 19 Nov 2020 13:23:47 +0000 (07:23 -0600)
commit36f9ff9e03de89691274a6aec45aa079bd3ae405
tree79c1e0a1bae6c0463276f4294c4440e0d8c6d78d
parent49a41365052849be798716b374fabd436cce3ad0
lib: Fix fall-through warnings for Clang

In preparation to enable -Wimplicit-fallthrough for Clang, fix multiple
warnings by explicitly adding multiple break statements instead of
letting the code fall through to the next case, and by replacing a
number of /* fall through */ comments with the new pseudo-keyword
macro fallthrough.

Notice that Clang doesn't recognize /* Fall through */ comments as
implicit fall-through markings.

Link: https://github.com/KSPP/linux/issues/115
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
lib/cmdline.c
lib/kstrtox.c
lib/nlattr.c
lib/vsprintf.c
lib/zlib_inflate/inflate.c
lib/zstd/bitstream.h
lib/zstd/huf_compress.c