]> Git Repo - linux.git/commitdiff
printk: Use fallthrough pseudo-keyword
authorGustavo A. R. Silva <[email protected]>
Fri, 2 Oct 2020 22:46:27 +0000 (17:46 -0500)
committerPetr Mladek <[email protected]>
Mon, 5 Oct 2020 13:56:58 +0000 (15:56 +0200)
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
kernel/printk/printk.c

index e4987ebe21b4a47c61c3d6bfe34a85141dfdd28c..8c870ba7607167562c034b3e2dc4682eb0f904bc 100644 (file)
@@ -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)
This page took 0.079257 seconds and 4 git commands to generate.