diff mbox series

[-next] tools/testing/nvdimm: Make symbol '__nfit_test_ioremap' static

Message ID 1617779451-81730-1-git-send-email-zou_wei@huawei.com (mailing list archive)
State New
Headers show
Series [-next] tools/testing/nvdimm: Make symbol '__nfit_test_ioremap' static | expand

Commit Message

Zou Wei April 7, 2021, 7:10 a.m. UTC
The sparse tool complains as follows:

tools/testing/nvdimm/test/iomap.c:65:14: warning:
 symbol '__nfit_test_ioremap' was not declared. Should it be static?

This symbol is not used outside of security.c, so this
commit marks it static.

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Zou Wei <zou_wei@huawei.com>
 tools/testing/nvdimm/test/iomap.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series


diff --git a/tools/testing/nvdimm/test/iomap.c b/tools/testing/nvdimm/test/iomap.c
index c62d372..ed563bd 100644
--- a/tools/testing/nvdimm/test/iomap.c
+++ b/tools/testing/nvdimm/test/iomap.c
@@ -62,7 +62,7 @@  struct nfit_test_resource *get_nfit_res(resource_size_t resource)
-void __iomem *__nfit_test_ioremap(resource_size_t offset, unsigned long size,
+static void __iomem *__nfit_test_ioremap(resource_size_t offset, unsigned long size,
 		void __iomem *(*fallback_fn)(resource_size_t, unsigned long))
 	struct nfit_test_resource *nfit_res = get_nfit_res(offset);