Skip to content

Commit

Permalink
mm/list_lru.c: mark expected switch fall-through
Browse files Browse the repository at this point in the history
In preparation for enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.

Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Gustavo A. R. Silva <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
GustavoARSilva authored and torvalds committed Nov 16, 2017
1 parent c840287 commit 5b568ac
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mm/list_lru.c
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,7 @@ __list_lru_walk_one(struct list_lru *lru, int nid, int memcg_idx,
switch (ret) {
case LRU_REMOVED_RETRY:
assert_spin_locked(&nlru->lock);
/* fall through */
case LRU_REMOVED:
isolated++;
nlru->nr_items--;
Expand Down

0 comments on commit 5b568ac

Please sign in to comment.