Skip to contentSkip to conversation

futex: Convert to use the preferred fallthrough macro

PATCH Applied Miaohe Lin 2 participants 2 messages Aug 13, 2020

lore
Share & tools
lore

Miaohe Lin

author
#0 lore raw

PATCH 1/1 futex: Convert to use the preferred fallthrough macro

Convert the uses of fallthrough comments to fallthrough macro.

---
 kernel/futex.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
kernel/futex.c +2 -2
index 83404124b77b..5310dc330656 100644
@@ -3744,12 +3744,12 @@ long do_futex(u32 __user *uaddr, int op, u32 val, ktime_t *timeout,
 	switch (cmd) {
 	case FUTEX_WAIT:
 		val3 = FUTEX_BITSET_MATCH_ANY;
-		/* fall through */
+		fallthrough;
 	case FUTEX_WAIT_BITSET:
 		return futex_wait(uaddr, flags, val, timeout, val3);
 	case FUTEX_WAKE:
 		val3 = FUTEX_BITSET_MATCH_ANY;
-		/* fall through */
+		fallthrough;
 	case FUTEX_WAKE_BITSET:
 		return futex_wake(uaddr, flags, val, val3);
 	case FUTEX_REQUEUE:
Signature · 1 line
2.19.1
merge bot Applied
#1 lore raw

[tip: locking/urgent] futex: Convert to use the preferred 'fallthrough' macro

The following commit has been merged into the locking/urgent branch of tip:

The following commit has been merged into the locking/urgent branch of tip:

Commit-ID:     405fa8ac89e7aaa87282df659e525992f2639e76
Gitweb:        https://git.kernel.org/tip/405fa8ac89e7aaa87282df659e525992f2639e76
Author:        Miaohe Lin <[email protected]>
AuthorDate:    Thu, 13 Aug 2020 08:21:17 -04:00
Committer:     Ingo Molnar <[email protected]>
CommitterDate: Thu, 13 Aug 2020 21:02:12 +02:00

futex: Convert to use the preferred 'fallthrough' macro

---
 kernel/futex.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
kernel/futex.c +2 -2
index 61e8153..a587669 100644
@@ -3744,12 +3744,12 @@ long do_futex(u32 __user *uaddr, int op, u32 val, ktime_t *timeout,
 	switch (cmd) {
 	case FUTEX_WAIT:
 		val3 = FUTEX_BITSET_MATCH_ANY;
-		/* fall through */
+		fallthrough;
 	case FUTEX_WAIT_BITSET:
 		return futex_wait(uaddr, flags, val, timeout, val3);
 	case FUTEX_WAKE:
 		val3 = FUTEX_BITSET_MATCH_ANY;
-		/* fall through */
+		fallthrough;
 	case FUTEX_WAKE_BITSET:
 		return futex_wake(uaddr, flags, val, val3);
 	case FUTEX_REQUEUE: