signal: Convert to use the preferred fallthrough macro
PATCH 1/1 signal: Convert to use the preferred fallthrough macro
Convert the uses of fallthrough comments to fallthrough macro.
Signed-off-by Miaohe Lin <[email protected]>
--- kernel/signal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/signal.c +1 -1
@@ -851,7 +851,7 @@ static int check_kill_permission(int sig, struct kernel_siginfo *info,*/ if (!sid || sid ==task_session (current))break ; -/* fall through */ + fallthrough;default :return -EPERM ; }
Signature · 1 line
2.19.1
Quoted 4 lines · Miaohe Lin
Convert the uses of fallthrough comments to fallthrough macro.
Signed-off-by Miaohe Lin <[email protected]>---
This matches what we have documented in:
Documentation/process/deprecated.rstDocumentation/process/coding-style.rst
I'm going to reference that info in the commit message.
Applied, queueing for post rc1.
Quoted 19 lines
kernel/signal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)kernel/signal.c +1
-1@@ -851,7 +851,7 @@ static int check_kill_permission(int sig, struct kernel_siginfo *info,*/ if (!sid || sid ==task_session (current))break ; -/* fall through */ + fallthrough;default :return -EPERM ; }Signature · 1 line
2.19.1