Skip to content

Commit

Permalink
nfsd: make nfsd_filecache_wq variable static
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Chen Zhou authored and J. Bruce Fields committed Feb 7, 2020
1 parent 91fd3c3 commit 50d0def
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/nfsd/filecache.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 50d0def

Please sign in to comment.