summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWei Ming Chen <jj251510319013@gmail.com>2021-05-11 17:02:46 +0300
committerSteven Rostedt (VMware) <rostedt@goodmis.org>2021-06-10 18:16:20 +0300
commit957cdcd9bd7e035dcf0f29e4124b8021ea2ed696 (patch)
treebf5118fdc37048c6c9edd9abb3cca4f1ad675a09
parent614db49c72db5ecf85ef94fe8bad7ebc88744ba9 (diff)
downloadlinux-957cdcd9bd7e035dcf0f29e4124b8021ea2ed696.tar.xz
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>
-rw-r--r--kernel/trace/ring_buffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/trace/ring_buffer.c b/kernel/trace/ring_buffer.c
index 2c0ee6484990..d1463eac11a3 100644
--- a/kernel/trace/ring_buffer.c
+++ b/kernel/trace/ring_buffer.c
@@ -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;