diff options
author | Chen Zhou <chenzhou10@huawei.com> | 2020-02-03 02:43:57 +0100 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2020-02-07 19:30:41 +0100 |
commit | 50d0def966a5f1237ba647e827a945e8ece4c10b (patch) | |
tree | 85169b466efbbd7964a3f3544b39d75b6904a1e7 | |
parent | nfsd4: fix double free in nfsd4_do_async_copy() (diff) | |
download | linux-50d0def966a5f1237ba647e827a945e8ece4c10b.tar.xz linux-50d0def966a5f1237ba647e827a945e8ece4c10b.zip |
nfsd: make nfsd_filecache_wq variable static
Fix sparse warning:
fs/nfsd/filecache.c:55:25: warning:
symbol 'nfsd_filecache_wq' was not declared. Should it be static?
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Chen Zhou <chenzhou10@huawei.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
-rw-r--r-- | fs/nfsd/filecache.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfsd/filecache.c b/fs/nfsd/filecache.c index 23c1fa5da1e9..22e77ede9f14 100644 --- a/fs/nfsd/filecache.c +++ b/fs/nfsd/filecache.c @@ -52,7 +52,7 @@ struct nfsd_fcache_disposal { struct rcu_head rcu; }; -struct workqueue_struct *nfsd_filecache_wq __read_mostly; +static struct workqueue_struct *nfsd_filecache_wq __read_mostly; static struct kmem_cache *nfsd_file_slab; static struct kmem_cache *nfsd_file_mark_slab; |