aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/core/cm.c
diff options
context:
space:
mode:
authorBart Van Assche <bart.vanassche@wdc.com>2017-10-11 10:48:44 -0700
committerDoug Ledford <dledford@redhat.com>2017-10-14 20:47:05 -0400
commit401c6ae363bdc66e724b4589881a0c0ffc9d7775 (patch)
tree40b72199c64f6ef2da78aa04e2ae7a7f2715184c /drivers/infiniband/core/cm.c
parentIB/core: Fix endianness annotation in rdma_is_multicast_addr() (diff)
downloadlinux-dev-401c6ae363bdc66e724b4589881a0c0ffc9d7775.tar.xz
linux-dev-401c6ae363bdc66e724b4589881a0c0ffc9d7775.zip
IB/cm: Suppress gcc 7 fall-through complaints
Avoid that gcc 7 reports the following warning when building with W=1: warning: this statement may fall through [-Wimplicit-fallthrough=] Signed-off-by: Bart Van Assche <bart.vanassche@wdc.com> Acked-by: Sean Hefty <sean.hefty@intel.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/core/cm.c')
-rw-r--r--drivers/infiniband/core/cm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/infiniband/core/cm.c b/drivers/infiniband/core/cm.c
index d80911d4abb7..5927ee4e57ca 100644
--- a/drivers/infiniband/core/cm.c
+++ b/drivers/infiniband/core/cm.c
@@ -2808,6 +2808,7 @@ int ib_send_cm_mra(struct ib_cm_id *cm_id,
msg_response = CM_MSG_RESPONSE_OTHER;
break;
}
+ /* fall through */
default:
ret = -EINVAL;
goto error1;