]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
nvmet: Make nvmet_debugfs static
authorJinjie Ruan <ruanjinjie@huawei.com>
Thu, 22 Aug 2024 07:19:16 +0000 (15:19 +0800)
committerKeith Busch <kbusch@kernel.org>
Fri, 23 Aug 2024 16:50:16 +0000 (09:50 -0700)
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>
drivers/nvme/target/debugfs.c

index cb2befc8619ed3aabb4741edcf122fcefb5ecf17..220c7391fc19adc9f151bacdc0fe075f65c3e0a1 100644 (file)
@@ -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) \