From: Jinjie Ruan Date: Thu, 22 Aug 2024 07:19:16 +0000 (+0800) Subject: nvmet: Make nvmet_debugfs static X-Git-Tag: v6.11-rc7~17^2^2~6 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f4bd3139933da65c2daa402b2a4d5fe469133aec;p=thirdparty%2Fkernel%2Flinux.git 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 Reviewed-by: Chaitanya Kulkarni Reviewed-by: Christoph Hellwig Signed-off-by: Keith Busch --- diff --git a/drivers/nvme/target/debugfs.c b/drivers/nvme/target/debugfs.c index cb2befc8619ed..220c7391fc19a 100644 --- a/drivers/nvme/target/debugfs.c +++ b/drivers/nvme/target/debugfs.c @@ -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) \