]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
nfsd: make nfsd_filecache_wq variable static
authorChen Zhou <chenzhou10@huawei.com>
Mon, 3 Feb 2020 01:43:57 +0000 (09:43 +0800)
committerJ. Bruce Fields <bfields@redhat.com>
Fri, 7 Feb 2020 18:30:41 +0000 (13:30 -0500)
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>
fs/nfsd/filecache.c

index 23c1fa5da1e9ec8f7527cf5a2656a75f1bb8eebc..22e77ede9f146af778f3036242f4bd5d691bbd75 100644 (file)
@@ -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;