Skip to contentSkip to conversation

ipc: sem: mark expected switch fall-through

PATCH New Gustavo A. R. Silva 1 participant 1 message Oct 26, 2017

lore
Share & tools
lore
#0 lore raw

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.

---
 ipc/sem.c | 1 +
 1 file changed, 1 insertion(+)
ipc/sem.c +1 -0
index f909848..3e09295 100644
@@ -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