diff options
author | Gustavo A. R. Silva <gustavoars@kernel.org> | 2020-10-02 17:46:27 -0500 |
---|---|---|
committer | Petr Mladek <pmladek@suse.com> | 2020-10-05 15:56:58 +0200 |
commit | 4e797e6ec79c0705791c14f3e60f38b01c78ea1d (patch) | |
tree | 78ee0c7ec936199354c27ee6ef372f857013aad5 /kernel | |
parent | 36d818f610f218e9e8711bf498b62a27778dae3f (diff) |
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 <gustavoars@kernel.org>
Signed-off-by: Petr Mladek <pmladek@suse.com>
Link: https://lore.kernel.org/r/20201002224627.GA30475@embeddedor
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/printk/printk.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) |