Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ring-buffer: Use fallthrough pseudo-keyword

Replace /* fall through */ comment with pseudo-keyword macro fallthrough[1]

[1] https://www.kernel.org/doc/html/latest/process/deprecated.html?highlight=fallthrough#implicit-switch-case-fall-through

Link: https://lkml.kernel.org/r/20210511140246.18868-1-jj251510319013@gmail.com

Signed-off-by: Wei Ming Chen <jj251510319013@gmail.com>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>

authored by

Wei Ming Chen and committed by
Steven Rostedt (VMware)
957cdcd9 614db49c

+1 -1
+1 -1
kernel/trace/ring_buffer.c
··· 3391 3391 case RINGBUF_TYPE_PADDING: 3392 3392 if (event->time_delta == 1) 3393 3393 break; 3394 - /* fall through */ 3394 + fallthrough; 3395 3395 case RINGBUF_TYPE_DATA: 3396 3396 ts += event->time_delta; 3397 3397 break;