Commit f4bd3139 authored by Jinjie Ruan's avatar Jinjie Ruan Committed by Keith Busch

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: default avatarJinjie Ruan <ruanjinjie@huawei.com>
Reviewed-by: default avatarChaitanya Kulkarni <kch@nvidia.com>
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarKeith Busch <kbusch@kernel.org>
parent e6b09a17
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
#include "nvmet.h" #include "nvmet.h"
#include "debugfs.h" #include "debugfs.h"
struct dentry *nvmet_debugfs; static struct dentry *nvmet_debugfs;
#define NVMET_DEBUGFS_ATTR(field) \ #define NVMET_DEBUGFS_ATTR(field) \
static int field##_open(struct inode *inode, struct file *file) \ static int field##_open(struct inode *inode, struct file *file) \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment