]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
ring-buffer: Use fallthrough pseudo-keyword
authorWei Ming Chen <jj251510319013@gmail.com>
Tue, 11 May 2021 14:02:46 +0000 (22:02 +0800)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Thu, 10 Jun 2021 15:16:20 +0000 (11:16 -0400)
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>
kernel/trace/ring_buffer.c

index 2c0ee64849903e1acb318cf261f08fc2c5ef33d7..d1463eac11a36ff6591ca01b1b74852103aaf74d 100644 (file)
@@ -3391,7 +3391,7 @@ static void check_buffer(struct ring_buffer_per_cpu *cpu_buffer,
                case RINGBUF_TYPE_PADDING:
                        if (event->time_delta == 1)
                                break;
-                       /* fall through */
+                       fallthrough;
                case RINGBUF_TYPE_DATA:
                        ts += event->time_delta;
                        break;