History

ARM: signal: Mark expected switch fall-through

Mark switch cases where we are expecting to fall through. This patch fixes the following warning: arch/arm/kernel/signal.c: In function 'do_signal': arch/arm/kernel/signal.c:598:12: warning: this statement may fall through [-Wimplicit-fallthrough=] restart -= 2; ~~~~~~~~^~~~ arch/arm/kernel/signal.c:599:3: note: here case -ERESTARTNOHAND: ^~~~

Gustavo A. R. Silva committed 7 years ago

Commit e9d81fc1 parent 90397821 file · +1 −0Browse files

Unified · Split

arch/arm/kernel/signal.c+1−0
@@ -596,6 +596,7 @@ static int do_signal(struct pt_regs *regs, int syscall) · 595 unmodified lines
596596 switch (retval) {
597597 case -ERESTART_RESTARTBLOCK:
598598 restart -= 2;
599+ /* Fall through */
599600 case -ERESTARTNOHAND:
600601 case -ERESTARTSYS:
601602 case -ERESTARTNOINTR: