]> Git Repo - linux.git/commitdiff
nfsd: Make two functions static
authorYueHaibing <[email protected]>
Mon, 8 Jul 2019 07:29:33 +0000 (15:29 +0800)
committerJ. Bruce Fields <[email protected]>
Tue, 9 Jul 2019 23:36:33 +0000 (19:36 -0400)
Fix sparse warnings:

fs/nfsd/nfs4state.c:1908:6: warning: symbol 'drop_client' was not declared. Should it be static?
fs/nfsd/nfs4state.c:2518:6: warning: symbol 'force_expire_client' was not declared. Should it be static?

Reported-by: Hulk Robot <[email protected]>
Signed-off-by: YueHaibing <[email protected]>
Signed-off-by: J. Bruce Fields <[email protected]>
fs/nfsd/nfs4state.c

index 94de5c348a41e0d00af6d2c07e5c61725e0b52a6..7857942c5ca6572b8e7b6c2107bca795e2f6c85c 100644 (file)
@@ -1905,7 +1905,7 @@ static void __free_client(struct kref *k)
        kmem_cache_free(client_slab, clp);
 }
 
-void drop_client(struct nfs4_client *clp)
+static void drop_client(struct nfs4_client *clp)
 {
        kref_put(&clp->cl_nfsdfs.cl_ref, __free_client);
 }
@@ -2515,7 +2515,7 @@ static const struct file_operations client_states_fops = {
  * so the caller has a guarantee that the client's locks are gone by
  * the time the write returns:
  */
-void force_expire_client(struct nfs4_client *clp)
+static void force_expire_client(struct nfs4_client *clp)
 {
        struct nfsd_net *nn = net_generic(clp->net, nfsd_net_id);
        bool already_expired;
This page took 0.056953 seconds and 4 git commands to generate.