Skip to contentSkip to conversation

mm/list_lru.c: mark expected switch fall-through

PATCH New [email protected] 1 participant 1 message Nov 16, 2017

Subsystems (2)
lore
Share & tools
lore

[email protected]

author maintainer
#0 lore raw

PATCH 122/131 mm/list_lru.c: mark expected switch fall-through

From: "Gustavo A. R. Silva" <[email protected]>
Subject: 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.

---

 mm/list_lru.c |    1 +
 1 file changed, 1 insertion(+)
mm/list_lru.c renamed from mm/list_lru.c~mm-list_lru-mark-expected-switch-fall-through +1 -0
diff -puN mm/list_lru.c~mm-list_lru-mark-expected-switch-fall-through mm/list_lru.c
@@ -221,6 +221,7 @@ restart:
 		switch (ret) {
 		case LRU_REMOVED_RETRY:
 			assert_spin_locked(&nlru->lock);
+			/* fall through */
 		case LRU_REMOVED:
 			isolated++;
 			nlru->nr_items--;

_