[<prev] [next>] [day] [month] [year] [list]
Message-ID: <20171026010527.GA30351@embeddedor.com>
Date: Wed, 25 Oct 2017 20:05:27 -0500
From: "Gustavo A. R. Silva" <garsilva@...eddedor.com>
To: Al Viro <viro@...iv.linux.org.uk>
Cc: linux-kernel@...r.kernel.org,
"Gustavo A. R. Silva" <garsilva@...eddedor.com>
Subject: [PATCH] ipc: sem: mark expected switch fall-through
In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.
Signed-off-by: Gustavo A. R. Silva <garsilva@...eddedor.com>
---
ipc/sem.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/ipc/sem.c b/ipc/sem.c
index f909848..3e09295 100644
--- a/ipc/sem.c
+++ b/ipc/sem.c
@@ -1612,6 +1612,7 @@ SYSCALL_DEFINE4(semctl, int, semid, int, semnum, int, cmd, unsigned long, arg)
case IPC_SET:
if (copy_semid_from_user(&semid64, p, version))
return -EFAULT;
+ /* fall through */
case IPC_RMID:
return semctl_down(ns, semid, cmd, &semid64);
default:
--
2.7.4
Powered by blists - more mailing lists