Skip to contentSkip to conversation

signal: Convert to use the preferred fallthrough macro

PATCH Applied Miaohe Lin 2 participants 2 messages Aug 14, 2020

lore
Share & tools
lore

Miaohe Lin

author
#0 lore raw

PATCH 1/1 signal: Convert to use the preferred fallthrough macro

Convert the uses of fallthrough comments to fallthrough macro.

---
 kernel/signal.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/signal.c +1 -1
index 6f16f7c5d375..27505ca5be2d 100644
@@ -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
Acked-by on v1 1/1 Applied
#1 lore raw
Quoted 4 lines · Miaohe Lin

Convert the uses of fallthrough comments to fallthrough macro.

---

This matches what we have documented in:

Documentation/process/deprecated.rst
Documentation/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
index 6f16f7c5d375..27505ca5be2d 100644
@@ -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