Skip to content

Commit 957cdcd

Browse files
AristoChenrostedt
authored andcommitted
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>
1 parent 614db49 commit 957cdcd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎kernel/trace/ring_buffer.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3391,7 +3391,7 @@ static void check_buffer(struct ring_buffer_per_cpu *cpu_buffer,
33913391
case RINGBUF_TYPE_PADDING:
33923392
if (event->time_delta == 1)
33933393
break;
3394-
/* fall through */
3394+
fallthrough;
33953395
case RINGBUF_TYPE_DATA:
33963396
ts += event->time_delta;
33973397
break;

0 commit comments

Comments
 (0)