Skip to content

Commit

Permalink
kernel/signal.c: annotate implicit fall through
Browse files Browse the repository at this point in the history
There is a plan to build the kernel with -Wimplicit-fallthrough and this
place in the code produced a warning (W=1).

This commit remove the following warning:

  kernel/signal.c:795:13: warning: this statement may fall through [-Wimplicit-fallthrough=]

Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Mathieu Malaterre <[email protected]>
Acked-by: Gustavo A. R. Silva <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
malaterre authored and torvalds committed May 15, 2019
1 parent bd8309d commit b028fb6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions kernel/signal.c
Original file line number Diff line number Diff line change
Expand Up @@ -840,6 +840,7 @@ static int check_kill_permission(int sig, struct kernel_siginfo *info,
*/
if (!sid || sid == task_session(current))
break;
/* fall through */
default:
return -EPERM;
}
Expand Down

0 comments on commit b028fb6

Please sign in to comment.