History

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

Wei Ming Chen committed 5 years ago

Commit 957cdcd1 parent 614db491 file · +1 −1Browse files

Unified · Split

kernel/trace/ring_buffer.c+1−1
@@ -3391,7 +3391,7 @@ static void check_buffer(struct ring_buffer_per_cpu *cpu_buffer, · 3390 unmodified lines
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;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t