]> git.baikalelectronics.ru Git - kernel.git/commit
mm: fix fall-through warnings for Clang
authorGustavo A. R. Silva <gustavoars@kernel.org>
Tue, 15 Dec 2020 03:15:00 +0000 (19:15 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 15 Dec 2020 20:13:47 +0000 (12:13 -0800)
commit001153cdc35b8e16ac7ecc9bf8adaaa62507c92e
tree5b6791e5d3dee0d9f18dc75ed1c967d4dfb2f01e
parent4656232056c7282be651b1e2b4ea2b387e5b609c
mm: fix fall-through warnings for Clang

In preparation to enable -Wimplicit-fallthrough for Clang, fix a couple of
warnings by explicitly adding a break statement instead of just letting
the code fall through to the next, and by adding a fallthrough
pseudo-keyword in places where the code is intended to fall through.

Link: https://github.com/KSPP/linux/issues/115
Link: https://lkml.kernel.org/r/f5756988b8842a3f10008fbc5b0a654f828920a9.1605896059.git.gustavoars@kernel.org
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/mm_init.c
mm/vmscan.c