ipc: sem: mark expected switch fall-through
PATCH 1/1 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 <[email protected]>
--- ipc/sem.c | 1 + 1 file changed, 1 insertion(+)
ipc/sem.c +1 -0
@@ -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 :
Signature · 1 line
2.7.4