projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
963cdcc
)
atm: fore200e: Fix fall-through warnings for Clang
author
Gustavo A. R. Silva
<gustavoars@kernel.org>
Fri, 20 Nov 2020 18:34:24 +0000
(12:34 -0600)
committer
Gustavo A. R. Silva
<gustavoars@kernel.org>
Mon, 17 May 2021 23:50:49 +0000
(18:50 -0500)
In preparation to enable -Wimplicit-fallthrough for Clang, fix a warning
by explicitly adding a fallthrough pseudo-keyword.
Link:
https://github.com/KSPP/linux/issues/115
Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
drivers/atm/fore200e.c
patch
|
blob
|
history
diff --git
a/drivers/atm/fore200e.c
b/drivers/atm/fore200e.c
index b508df2ecadab7cd1b386e55123024dc2c3c1ea2..fb2be3574c26a85e79478b6d319077b7008d25cd 100644
(file)
--- a/
drivers/atm/fore200e.c
+++ b/
drivers/atm/fore200e.c
@@
-420,6
+420,7
@@
fore200e_shutdown(struct fore200e* fore200e)
/* XXX shouldn't we *start* by deregistering the device? */
atm_dev_deregister(fore200e->atm_dev);
+ fallthrough;
case FORE200E_STATE_BLANK:
/* nothing to do for that state */
break;