diff options
author | Gustavo A. R. Silva <garsilva@embeddedor.com> | 2017-10-15 12:55:23 -0500 |
---|---|---|
committer | Ilya Dryomov <idryomov@gmail.com> | 2017-11-13 12:11:39 +0100 |
commit | 18370b36b28a6c1b059392e9b8f9a80332e51e7c (patch) | |
tree | e59f88ab5cf71d837e826d413b4c88295a96b99a /net/ceph/mon_client.c | |
parent | 76bd6ec4988065d39983ba8e93bb738313f68050 (diff) | |
download | linux-stable-18370b36b28a6c1b059392e9b8f9a80332e51e7c.tar.gz linux-stable-18370b36b28a6c1b059392e9b8f9a80332e51e7c.tar.bz2 linux-stable-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/mon_client.c')
-rw-r--r-- | net/ceph/mon_client.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/net/ceph/mon_client.c b/net/ceph/mon_client.c index 9ae1bab8c05d..1547107f4854 100644 --- a/net/ceph/mon_client.c +++ b/net/ceph/mon_client.c @@ -1279,9 +1279,10 @@ static struct ceph_msg *mon_alloc_msg(struct ceph_connection *con, /* * Older OSDs don't set reply tid even if the orignal - * request had a non-zero tid. Workaround this weirdness - * by falling through to the allocate case. + * request had a non-zero tid. Work around this weirdness + * by allocating a new message. */ + /* fall through */ case CEPH_MSG_MON_MAP: case CEPH_MSG_MDS_MAP: case CEPH_MSG_OSD_MAP: |