Skip to content

Commit

Permalink
nvmet: Make nvmet_debugfs static
Browse files Browse the repository at this point in the history
The sparse tool complains as follows:

drivers/nvme/target/debugfs.c:16:15: warning:
	symbol 'nvmet_debugfs' was not declared. Should it be static?

This symbol is not used outside debugfs.c, so marks it static.

Signed-off-by: Jinjie Ruan <ruanjinjie@huawei.com>
Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Keith Busch <kbusch@kernel.org>
  • Loading branch information
Jinjie Ruan authored and Keith Busch committed Aug 23, 2024
1 parent e6b09a1 commit f4bd313
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/nvme/target/debugfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
#include "nvmet.h"
#include "debugfs.h"

struct dentry *nvmet_debugfs;
static struct dentry *nvmet_debugfs;

#define NVMET_DEBUGFS_ATTR(field) \
static int field##_open(struct inode *inode, struct file *file) \
Expand Down

0 comments on commit f4bd313

Please sign in to comment.