summaryrefslogtreecommitdiffstats
path: root/net/ceph/messenger.c
diff options
context:
space:
mode:
authorGustavo A. R. Silva <garsilva@embeddedor.com>2017-10-15 19:55:23 +0200
committerIlya Dryomov <idryomov@gmail.com>2017-11-13 12:11:39 +0100
commit18370b36b28a6c1b059392e9b8f9a80332e51e7c (patch)
treee59f88ab5cf71d837e826d413b4c88295a96b99a /net/ceph/messenger.c
parentceph: -EINVAL on decoding failure in ceph_mdsc_handle_fsmap() (diff)
downloadlinux-18370b36b28a6c1b059392e9b8f9a80332e51e7c.tar.xz
linux-18370b36b28a6c1b059392e9b8f9a80332e51e7c.zip
ceph: mark expected switch fall-throughs
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> [idryomov@gmail.com: amended "Older OSDs" comment] Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'net/ceph/messenger.c')
-rw-r--r--net/ceph/messenger.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/ceph/messenger.c b/net/ceph/messenger.c
index ad93342c90d7..8a4d3758030b 100644
--- a/net/ceph/messenger.c
+++ b/net/ceph/messenger.c
@@ -430,6 +430,7 @@ static void ceph_sock_state_change(struct sock *sk)
switch (sk->sk_state) {
case TCP_CLOSE:
dout("%s TCP_CLOSE\n", __func__);
+ /* fall through */
case TCP_CLOSE_WAIT:
dout("%s TCP_CLOSE_WAIT\n", __func__);
con_sock_state_closing(con);