summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorZou Wei <zou_wei@huawei.com>2021-04-20 15:47:47 +0800
committerDan Williams <dan.j.williams@intel.com>2021-05-12 12:37:14 -0700
commit7ddb4cc2b885c740523e6ea54a1f4434acfa3368 (patch)
tree6537e106a00cea7844d4888e71c35cff582021ab /tools
parent681865a03d3ec6ac3dda147044ed2a1a0f49f7bf (diff)
downloadlinux-7ddb4cc2b885c740523e6ea54a1f4434acfa3368.tar.bz2
tools/testing/nvdimm: Make symbol '__nfit_test_ioremap' static
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 iomap.c, so this commit marks it static. Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: Zou Wei <zou_wei@huawei.com> Link: https://lore.kernel.org/r/1618904867-25275-1-git-send-email-zou_wei@huawei.com Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/testing/nvdimm/test/iomap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/nvdimm/test/iomap.c b/tools/testing/nvdimm/test/iomap.c
index c62d372d426f..ed563bdd88f3 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)
}
EXPORT_SYMBOL(get_nfit_res);
-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);