From: Bart Van Assche Date: Wed, 11 Oct 2017 17:48:44 +0000 (-0700) Subject: IB/cm: Suppress gcc 7 fall-through complaints X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=401c6ae363bdc66e724b4589881a0c0ffc9d7775;p=linux.git 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 Acked-by: Sean Hefty Signed-off-by: Doug Ledford --- diff --git a/drivers/infiniband/core/cm.c b/drivers/infiniband/core/cm.c index d80911d4abb7a..5927ee4e57caa 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;