From: Gustavo A. R. Silva Date: Fri, 2 Oct 2020 22:46:27 +0000 (-0500) Subject: printk: Use fallthrough pseudo-keyword X-Git-Tag: v5.10-rc1~163^2~1 X-Git-Url: https://repo.jachan.dev/linux.git/commitdiff_plain/4e797e6ec79c0705791c14f3e60f38b01c78ea1d 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 Signed-off-by: Petr Mladek Link: https://lore.kernel.org/r/20201002224627.GA30475@embeddedor --- diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c index e4987ebe21b4..8c870ba76071 100644 --- a/kernel/printk/printk.c +++ b/kernel/printk/printk.c @@ -1567,7 +1567,7 @@ int do_syslog(int type, char __user *buf, int len, int source) /* Read/clear last kernel messages */ case SYSLOG_ACTION_READ_CLEAR: clear = true; - /* FALL THRU */ + fallthrough; /* Read last kernel messages */ case SYSLOG_ACTION_READ_ALL: if (!buf || len < 0)