diff mbox series

[rdma-core,01/20] ibdiags: Add SWITCH_FALLTHROUGH

Message ID 20190514234936.5175-2-jgg@ziepe.ca (mailing list archive)
State Not Applicable
Headers show
Series Incorporate infiniband-diags into rdma-core | expand

Commit Message

Jason Gunthorpe May 14, 2019, 11:49 p.m. UTC
From: Jason Gunthorpe <jgg@mellanox.com>

Mark this case as deliberate fall through

Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
---
 ibdiags/src/ibportstate.c | 3 +++
 1 file changed, 3 insertions(+)
diff mbox series

Patch

diff --git a/ibdiags/src/ibportstate.c b/ibdiags/src/ibportstate.c
index cfe30655e67fd5..60afcb45a3ee07 100644
--- a/ibdiags/src/ibportstate.c
+++ b/ibdiags/src/ibportstate.c
@@ -48,6 +48,8 @@ 
 
 #include "ibdiag_common.h"
 
+#include <util/compiler.h>
+
 enum port_ops {
 	QUERY,
 	ENABLE,
@@ -578,6 +580,7 @@  int main(int argc, char **argv)
 				printf("Port is already in enable state\n");
 				goto close_port;
 			}
+			SWITCH_FALLTHROUGH;
 		case ENABLE:
 		case RESET:
 			/* Polling */