提交 5b568acc 编写于 作者: G Gustavo A. R. Silva 提交者: Linus Torvalds

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.comSigned-off-by: NGustavo A. R. Silva <garsilva@embeddedor.com>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 c8402871
...@@ -221,6 +221,7 @@ __list_lru_walk_one(struct list_lru *lru, int nid, int memcg_idx, ...@@ -221,6 +221,7 @@ __list_lru_walk_one(struct list_lru *lru, int nid, int memcg_idx,
switch (ret) { switch (ret) {
case LRU_REMOVED_RETRY: case LRU_REMOVED_RETRY:
assert_spin_locked(&nlru->lock); assert_spin_locked(&nlru->lock);
/* fall through */
case LRU_REMOVED: case LRU_REMOVED:
isolated++; isolated++;
nlru->nr_items--; nlru->nr_items--;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册