Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Zou Wei and committed by
Dan Williams
7ddb4cc2 681865a0

+1 -1
+1 -1
tools/testing/nvdimm/test/iomap.c
··· 62 62 } 63 63 EXPORT_SYMBOL(get_nfit_res); 64 64 65 - void __iomem *__nfit_test_ioremap(resource_size_t offset, unsigned long size, 65 + static void __iomem *__nfit_test_ioremap(resource_size_t offset, unsigned long size, 66 66 void __iomem *(*fallback_fn)(resource_size_t, unsigned long)) 67 67 { 68 68 struct nfit_test_resource *nfit_res = get_nfit_res(offset);