diff options
author | YueHaibing <yuehaibing@huawei.com> | 2019-07-08 03:29:33 -0400 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2019-07-09 19:36:33 -0400 |
commit | 297e57a24f6e2d5a041822003816124e48164eef (patch) | |
tree | 399f5a12746652fcc0f68144147a9d7493bd6f99 | |
parent | c8320ccdd47ebf31e516286b594d1cc36cbaf551 (diff) |
nfsd: Make two functions static
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 <hulkci@huawei.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
-rw-r--r-- | fs/nfsd/nfs4state.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/nfsd/nfs4state.c b/fs/nfsd/nfs4state.c index 94de5c348a41..7857942c5ca6 100644 --- a/fs/nfsd/nfs4state.c +++ b/fs/nfsd/nfs4state.c | |||
@@ -1905,7 +1905,7 @@ static void __free_client(struct kref *k) | |||
1905 | kmem_cache_free(client_slab, clp); | 1905 | kmem_cache_free(client_slab, clp); |
1906 | } | 1906 | } |
1907 | 1907 | ||
1908 | void drop_client(struct nfs4_client *clp) | 1908 | static void drop_client(struct nfs4_client *clp) |
1909 | { | 1909 | { |
1910 | kref_put(&clp->cl_nfsdfs.cl_ref, __free_client); | 1910 | kref_put(&clp->cl_nfsdfs.cl_ref, __free_client); |
1911 | } | 1911 | } |
@@ -2515,7 +2515,7 @@ static const struct file_operations client_states_fops = { | |||
2515 | * so the caller has a guarantee that the client's locks are gone by | 2515 | * so the caller has a guarantee that the client's locks are gone by |
2516 | * the time the write returns: | 2516 | * the time the write returns: |
2517 | */ | 2517 | */ |
2518 | void force_expire_client(struct nfs4_client *clp) | 2518 | static void force_expire_client(struct nfs4_client *clp) |
2519 | { | 2519 | { |
2520 | struct nfsd_net *nn = net_generic(clp->net, nfsd_net_id); | 2520 | struct nfsd_net *nn = net_generic(clp->net, nfsd_net_id); |
2521 | bool already_expired; | 2521 | bool already_expired; |