Skip to content

Commit f4bd313

Browse files
Jinjie Ruankeithbusch
authored andcommitted
nvmet: Make nvmet_debugfs static
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>
1 parent e6b09a1 commit f4bd313

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/nvme/target/debugfs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
#include "nvmet.h"
1414
#include "debugfs.h"
1515

16-
struct dentry *nvmet_debugfs;
16+
static struct dentry *nvmet_debugfs;
1717

1818
#define NVMET_DEBUGFS_ATTR(field) \
1919
static int field##_open(struct inode *inode, struct file *file) \

0 commit comments

Comments
 (0)