]> rtime.felk.cvut.cz Git - linux-imx.git/commitdiff
NFSv4: nfs4_match_clientids is only used by NFSv4.1
authorTrond Myklebust <Trond.Myklebust@netapp.com>
Mon, 1 Oct 2012 23:37:51 +0000 (16:37 -0700)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Mon, 1 Oct 2012 23:58:48 +0000 (16:58 -0700)
Fix another compiler warning.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/nfs4client.c

index 14ddd4d30966c8344d10c827c785cc2e489a0d84..8466e6046ff555d3c9a58f1bef900f5ef7eb7f3e 100644 (file)
@@ -251,21 +251,6 @@ error:
        return ERR_PTR(error);
 }
 
-/*
- * Returns true if the client IDs match
- */
-static bool nfs4_match_clientids(struct nfs_client *a, struct nfs_client *b)
-{
-       if (a->cl_clientid != b->cl_clientid) {
-               dprintk("NFS: --> %s client ID %llx does not match %llx\n",
-                       __func__, a->cl_clientid, b->cl_clientid);
-               return false;
-       }
-       dprintk("NFS: --> %s client ID %llx matches %llx\n",
-               __func__, a->cl_clientid, b->cl_clientid);
-       return true;
-}
-
 /*
  * SETCLIENTID just did a callback update with the callback ident in
  * "drop," but server trunking discovery claims "drop" and "keep" are
@@ -383,6 +368,21 @@ int nfs40_walk_client_list(struct nfs_client *new,
 }
 
 #ifdef CONFIG_NFS_V4_1
+/*
+ * Returns true if the client IDs match
+ */
+static bool nfs4_match_clientids(struct nfs_client *a, struct nfs_client *b)
+{
+       if (a->cl_clientid != b->cl_clientid) {
+               dprintk("NFS: --> %s client ID %llx does not match %llx\n",
+                       __func__, a->cl_clientid, b->cl_clientid);
+               return false;
+       }
+       dprintk("NFS: --> %s client ID %llx matches %llx\n",
+               __func__, a->cl_clientid, b->cl_clientid);
+       return true;
+}
+
 /*
  * Returns true if the server owners match
  */