OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3fa5f11
)
net: af_unix: mark expected switch fall-through
author
Gustavo A. R. Silva
<garsilva@embeddedor.com>
Fri, 20 Oct 2017 17:05:30 +0000
(12:05 -0500)
committer
David S. Miller
<davem@davemloft.net>
Sun, 22 Oct 2017 02:07:50 +0000
(
03:07
+0100)
In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.
Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/unix/af_unix.c
patch
|
blob
|
history
diff --git
a/net/unix/af_unix.c
b/net/unix/af_unix.c
index
7f46bab
..
a9ee634
100644
(file)
--- a/
net/unix/af_unix.c
+++ b/
net/unix/af_unix.c
@@
-814,6
+814,7
@@
static int unix_create(struct net *net, struct socket *sock, int protocol,
*/
case SOCK_RAW:
sock->type = SOCK_DGRAM;
+ /* fall through */
case SOCK_DGRAM:
sock->ops = &unix_dgram_ops;
break;