From: Gustavo A. R. Silva Date: Fri, 2 Oct 2020 22:46:27 +0000 (-0500) Subject: printk: Use fallthrough pseudo-keyword X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=4e797e6ec79c0705791c14f3e60f38b01c78ea1d;p=linux.git 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 e4987ebe21b4a..8c870ba760716 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)