Whamcloud - gitweb
LU-15220 lustre: use 'fallthrough' pseudo keyword for switch
[fs/lustre-release.git] / lustre / ptlrpc / pack_generic.c
index 034113a..e3c0f47 100644 (file)
@@ -889,7 +889,7 @@ __u32 lustre_msg_get_flags(struct lustre_msg *msg)
 
                CERROR("invalid msg %p: no ptlrpc body!\n", msg);
        }
-       /* fallthrough */
+       fallthrough;
        default:
                /*
                 * flags might be printed in debug code while message
@@ -955,7 +955,7 @@ __u32 lustre_msg_get_op_flags(struct lustre_msg *msg)
 
                CERROR("invalid msg %p: no ptlrpc body!\n", msg);
        }
-       /* fallthrough */
+       fallthrough;
        default:
                return 0;
        }
@@ -1160,7 +1160,7 @@ int lustre_msg_get_status(struct lustre_msg *msg)
                        return pb->pb_status;
                CERROR("invalid msg %p: no ptlrpc body!\n", msg);
        }
-       /* fallthrough */
+       fallthrough;
        default:
                /*
                 * status might be printed in debug code while message
@@ -2274,7 +2274,7 @@ void lustre_swab_lmv_user_md(struct lmv_user_md *lum)
        switch (lum->lum_magic) {
        case LMV_USER_MAGIC_SPECIFIC:
                count = lum->lum_stripe_count;
-               /* fallthrough */
+               fallthrough;
        case __swab32(LMV_USER_MAGIC_SPECIFIC):
                lustre_swab_lmv_user_md_objects(lum->lum_objects, count);
                break;