[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <tip-b639186ffe9168fd1d2f95a1fff8571720739126@git.kernel.org>
Date: Mon, 20 Aug 2018 09:27:55 -0700
From: "tip-bot for Gustavo A. R. Silva" <tipbot@...or.com>
To: linux-tip-commits@...r.kernel.org
Cc: linux-kernel@...r.kernel.org, mingo@...nel.org,
gustavo@...eddedor.com, dvhart@...radead.org, hpa@...or.com,
tglx@...utronix.de, peterz@...radead.org
Subject: [tip:locking/urgent] futex: Mark expected switch fall-throughs
Commit-ID: b639186ffe9168fd1d2f95a1fff8571720739126
Gitweb: https://git.kernel.org/tip/b639186ffe9168fd1d2f95a1fff8571720739126
Author: Gustavo A. R. Silva <gustavo@...eddedor.com>
AuthorDate: Thu, 16 Aug 2018 12:21:24 -0500
Committer: Thomas Gleixner <tglx@...utronix.de>
CommitDate: Mon, 20 Aug 2018 18:23:00 +0200
futex: Mark expected switch fall-throughs
In preparation of enabling -Wimplicit-fallthrough, mark switch cases which
fall through.
Signed-off-by: Gustavo A. R. Silva <gustavo@...eddedor.com>
Signed-off-by: Thomas Gleixner <tglx@...utronix.de>
Cc: Peter Zijlstra <peterz@...radead.org>
Cc: Darren Hart <dvhart@...radead.org>
Link: https://lkml.kernel.org/r/20180816172124.GA2407@embeddedor.com
---
kernel/futex.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/kernel/futex.c b/kernel/futex.c
index 1f450e092c74..11fc3bb456d6 100644
--- a/kernel/futex.c
+++ b/kernel/futex.c
@@ -3523,10 +3523,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 */
case FUTEX_WAIT_BITSET:
return futex_wait(uaddr, flags, val, timeout, val3);
case FUTEX_WAKE:
val3 = FUTEX_BITSET_MATCH_ANY;
+ /* fall through */
case FUTEX_WAKE_BITSET:
return futex_wake(uaddr, flags, val, val3);
case FUTEX_REQUEUE:
Powered by blists - more mailing lists