* [PATCH][next] printk: Use fallthrough pseudo-keyword
@ 2020-10-02 22:46 Gustavo A. R. Silva
2020-10-05 16:56 ` Petr Mladek
0 siblings, 1 reply; 2+ messages in thread
From: Gustavo A. R. Silva @ 2020-10-02 22:46 UTC (permalink / raw)
To: Petr Mladek, Sergey Senozhatsky, Steven Rostedt, John Ogness
Cc: linux-kernel, Gustavo A. R. Silva, linux-hardening
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>
---
kernel/printk/printk.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/printk/printk.c b/kernel/printk/printk.c
index 1538df175aae..fe64a49344bf 100644
--- a/kernel/printk/printk.c
+++ b/kernel/printk/printk.c
@@ -1617,7 +1617,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)
--
2.27.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH][next] printk: Use fallthrough pseudo-keyword
2020-10-02 22:46 [PATCH][next] printk: Use fallthrough pseudo-keyword Gustavo A. R. Silva
@ 2020-10-05 16:56 ` Petr Mladek
0 siblings, 0 replies; 2+ messages in thread
From: Petr Mladek @ 2020-10-05 16:56 UTC (permalink / raw)
To: Gustavo A. R. Silva
Cc: Sergey Senozhatsky, Steven Rostedt, John Ogness, linux-kernel,
linux-hardening
On Fri 2020-10-02 17:46:27, Gustavo A. R. Silva wrote:
> 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>
The patch is committed in printk/linux.git, branch for-5.10.
Best Regards,
Petr
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-10-05 16:56 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-02 22:46 [PATCH][next] printk: Use fallthrough pseudo-keyword Gustavo A. R. Silva
2020-10-05 16:56 ` Petr Mladek
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.