diff options
author | Gustavo A. R. Silva <garsilva@embeddedor.com> | 2017-11-15 20:38:49 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2017-11-15 21:21:07 -0500 |
commit | 5b568acc3c2328f7d8da3cb03b4ef343f93545c6 (patch) | |
tree | ca947ed80de18a9096d7b99e2fba58ae4e92996c | |
parent | c8402871d54a8e00016e040c1b8f5d31e96fcd94 (diff) |
mm/list_lru.c: mark expected switch fall-through
In preparation for enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.
Link: http://lkml.kernel.org/r/20171020190754.GA24332@embeddedor.com
Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | mm/list_lru.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mm/list_lru.c b/mm/list_lru.c index f141f0c80ff3..fd41e969ede5 100644 --- a/mm/list_lru.c +++ b/mm/list_lru.c | |||
@@ -221,6 +221,7 @@ restart: | |||
221 | switch (ret) { | 221 | switch (ret) { |
222 | case LRU_REMOVED_RETRY: | 222 | case LRU_REMOVED_RETRY: |
223 | assert_spin_locked(&nlru->lock); | 223 | assert_spin_locked(&nlru->lock); |
224 | /* fall through */ | ||
224 | case LRU_REMOVED: | 225 | case LRU_REMOVED: |
225 | isolated++; | 226 | isolated++; |
226 | nlru->nr_items--; | 227 | nlru->nr_items--; |