Commit b028fb61 authored by Mathieu Malaterre's avatar Mathieu Malaterre Committed by Linus Torvalds

kernel/signal.c: annotate implicit fall through

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/20190114203505.17875-1-malat@debian.orgSigned-off-by: default avatarMathieu Malaterre <malat@debian.org>
Acked-by: default avatarGustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent bd8309de
...@@ -840,6 +840,7 @@ static int check_kill_permission(int sig, struct kernel_siginfo *info, ...@@ -840,6 +840,7 @@ static int check_kill_permission(int sig, struct kernel_siginfo *info,
*/ */
if (!sid || sid == task_session(current)) if (!sid || sid == task_session(current))
break; break;
/* fall through */
default: default:
return -EPERM; return -EPERM;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment