Skip to content

Commit 4e797e6

Browse files
GustavoARSilvapmladek
authored andcommitted
printk: Use fallthrough pseudo-keyword
Replace /* FALL THRU */ comment with the new pseudo-keyword macro fallthrough[1]. [1] https://www.kernel.org/doc/html/v5.7/process/deprecated.html?highlight=fallthrough#implicit-switch-case-fall-through Signed-off-by: Gustavo A. R. Silva <[email protected]> Signed-off-by: Petr Mladek <[email protected]> Link: https://lore.kernel.org/r/20201002224627.GA30475@embeddedor
1 parent 36d818f commit 4e797e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/printk/printk.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1567,7 +1567,7 @@ int do_syslog(int type, char __user *buf, int len, int source)
15671567
/* Read/clear last kernel messages */
15681568
case SYSLOG_ACTION_READ_CLEAR:
15691569
clear = true;
1570-
/* FALL THRU */
1570+
fallthrough;
15711571
/* Read last kernel messages */
15721572
case SYSLOG_ACTION_READ_ALL:
15731573
if (!buf || len < 0)

0 commit comments

Comments
 (0)