nfs: Convert to use the preferred fallthrough macro
authorMiaohe Lin <linmiaohe@huawei.com>
Thu, 20 Aug 2020 12:01:49 +0000 (08:01 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Mon, 21 Sep 2020 14:21:10 +0000 (10:21 -0400)
Convert the uses of fallthrough comments to fallthrough macro. Please see
commit 294f69e662d1 ("compiler_attributes.h: Add 'fallthrough' pseudo
keyword for switch/case use") for detail.

Signed-off-by: Hongxiang Lou <louhongxiang@huawei.com>
Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/super.c

index 7a70287..d20326e 100644 (file)
@@ -889,7 +889,7 @@ static struct nfs_server *nfs_try_mount_request(struct fs_context *fc)
                default:
                        if (rpcauth_get_gssinfo(flavor, &info) != 0)
                                continue;
-                       /* Fallthrough */
+                       fallthrough;
                }
                dfprintk(MOUNT, "NFS: attempting to use auth flavor %u\n", flavor);
                ctx->selected_flavor = flavor;