Whamcloud - gitweb
LU-13210 lnet: gcc8 add implicit-fallthrough decorator 66/37466/3
authorShaun Tancheff <shaun.tancheff@hpe.com>
Thu, 6 Feb 2020 22:44:13 +0000 (16:44 -0600)
committerOleg Drokin <green@whamcloud.com>
Fri, 14 Feb 2020 05:49:11 +0000 (05:49 +0000)
With newer compilers and newer kernels -Werror=implicit-fallthrough
is enabled.

This adds the missing decorator.

Test-Parameters: trivial
Cray-bug-id: LUS-8476
Signed-off-by: Shaun Tancheff <shaun.tancheff@hpe.com>
Change-Id: I47334d5a8d0bcf17489c1b15af29cd553fa01a09
Reviewed-on: https://review.whamcloud.com/37466
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-by: Neil Brown <neilb@suse.de>
Reviewed-by: Petros Koutoupis <petros.koutoupis@hpe.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Wang Shilong <wshilong@ddn.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lnet/lnet/net_fault.c

index 3d78ce4..56365fd 100644 (file)
@@ -701,6 +701,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);
+                               /* fallthrough */
                        case LNET_CREDIT_WAIT:
                                continue;
                        default: /* failures */