Skip to content

Commit 7ddb4cc

Browse files
SamuelZOUdjbw
authored andcommitted
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 <[email protected]> Signed-off-by: Zou Wei <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Dan Williams <[email protected]>
1 parent 681865a commit 7ddb4cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/testing/nvdimm/test/iomap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ struct nfit_test_resource *get_nfit_res(resource_size_t resource)
6262
}
6363
EXPORT_SYMBOL(get_nfit_res);
6464

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,
6666
void __iomem *(*fallback_fn)(resource_size_t, unsigned long))
6767
{
6868
struct nfit_test_resource *nfit_res = get_nfit_res(offset);

0 commit comments

Comments
 (0)