]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
staging: lustre: lnet: net_fault: mark expected switch fall-through
authorGustavo A. R. Silva <garsilva@embeddedor.com>
Thu, 12 Oct 2017 16:16:32 +0000 (11:16 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Oct 2017 13:33:10 +0000 (15:33 +0200)
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>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lnet/lnet/net_fault.c

index 03f3d18a1a294da08ba84f1dfed8afcab5cdb404..7391e16a0f7c3a35344bf17662714c4897302590 100644 (file)
@@ -629,6 +629,7 @@ delayed_msg_process(struct list_head *msg_list, bool drop)
                        case LNET_CREDIT_OK:
                                lnet_ni_recv(ni, msg->msg_private, msg, 0,
                                             0, msg->msg_len, msg->msg_len);
+                               /* fall through */
                        case LNET_CREDIT_WAIT:
                                continue;
                        default: /* failures */