History

printk: Use fallthrough pseudo-keyword

Replace /* FALL THRU */ comment with the new pseudo-keyword macro fallthrough[1]. [1] https://www.kernel.org/doc/html/v5.7/process/deprecated.html?highlight=fallthrough#implicit-switch-case-fall-through

Gustavo A. R. Silva committed 6 years ago

Commit 4e797e61 parent 36d818f1 file · +1 −1Browse files

Unified · Split

kernel/printk/printk.c+1−1
@@ -1567,7 +1567,7 @@ int do_syslog(int type, char __user *buf, int len, int source) · 1566 unmodified lines
15671567 /* Read/clear last kernel messages */
15681568 case SYSLOG_ACTION_READ_CLEAR:
15691569 clear = true;
1570− /* FALL THRU */
1570+ fallthrough;
15711571 /* Read last kernel messages */
15721572 case SYSLOG_ACTION_READ_ALL:
15731573 if (!buf || len < 0)

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