[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240822071916.3547318-1-ruanjinjie@huawei.com>
Date: Thu, 22 Aug 2024 15:19:16 +0800
From: Jinjie Ruan <ruanjinjie@...wei.com>
To: <hch@....de>, <sagi@...mberg.me>, <kch@...dia.com>,
<linux-nvme@...ts.infradead.org>, <linux-kernel@...r.kernel.org>
CC: <ruanjinjie@...wei.com>
Subject: [PATCH -next RESEND] 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@...wei.com>
---
drivers/nvme/target/debugfs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/nvme/target/debugfs.c b/drivers/nvme/target/debugfs.c
index cb2befc8619e..220c7391fc19 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) \
--
2.34.1
Powered by blists - more mailing lists