projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1c3aea2
)
IB/cm: Suppress gcc 7 fall-through complaints
author
Bart Van Assche
<bart.vanassche@wdc.com>
Wed, 11 Oct 2017 17:48:44 +0000
(10:48 -0700)
committer
Doug Ledford
<dledford@redhat.com>
Sun, 15 Oct 2017 00:47:05 +0000
(20:47 -0400)
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>
drivers/infiniband/core/cm.c
patch
|
blob
|
history
diff --git
a/drivers/infiniband/core/cm.c
b/drivers/infiniband/core/cm.c
index d80911d4abb7ae69d895779f1698c6202ac3d797..5927ee4e57caa84737ce499cd76970649e4675f0 100644
(file)
--- 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;