Skip to content

Commit 6b57fa4

Browse files
author
Ley Foon Tan
committed
nios2: signal: Mark expected switch fall-through
Mark switch cases where we are expecting to fall through. Fix the following warning through the use of the new the new pseudo-keyword fallthrough; arch/nios2/kernel/signal.c:254:12: warning: this statement may fall through [-Wimplicit-fallthrough=] 254 | restart = -2; | ~~~~~~~~^~~~ arch/nios2/kernel/signal.c:255:3: note: here 255 | case ERESTARTNOHAND: | ^~~~ Reported-by: Christian Brauner <[email protected]> Signed-off-by: Gustavo A. R. Silva <[email protected]> Signed-off-by: Ley Foon Tan <[email protected]>
1 parent 3d77e6a commit 6b57fa4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/nios2/kernel/signal.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,7 @@ static int do_signal(struct pt_regs *regs)
252252
switch (retval) {
253253
case ERESTART_RESTARTBLOCK:
254254
restart = -2;
255+
fallthrough;
255256
case ERESTARTNOHAND:
256257
case ERESTARTSYS:
257258
case ERESTARTNOINTR:

0 commit comments

Comments
 (0)