Commit c1468554 authored by Dan Williams's avatar Dan Williams

tools/testing/nvdimm: Fix mock support for ioremap

After commit d092a870 "arch: rely on asm-generic/io.h for default
ioremap_* definitions" the ioremap_nocache() symbol has been replaced
with ioremap(). Update the mocked symbol list for nvdimm testing.

Link: https://lore.kernel.org/r/157369090817.2974548.10148423996292973088.stgit@dwillia2-desk3.amr.corp.intel.com
Fixes: d092a870 ("arch: rely on asm-generic/io.h for default ioremap_* definitions")
Signed-off-by: default avatarDan Williams <dan.j.williams@intel.com>
parent e42617b8
...@@ -5,6 +5,7 @@ ldflags-y += --wrap=devm_ioremap_nocache ...@@ -5,6 +5,7 @@ ldflags-y += --wrap=devm_ioremap_nocache
ldflags-y += --wrap=devm_memremap ldflags-y += --wrap=devm_memremap
ldflags-y += --wrap=devm_memunmap ldflags-y += --wrap=devm_memunmap
ldflags-y += --wrap=ioremap_nocache ldflags-y += --wrap=ioremap_nocache
ldflags-y += --wrap=ioremap
ldflags-y += --wrap=iounmap ldflags-y += --wrap=iounmap
ldflags-y += --wrap=memunmap ldflags-y += --wrap=memunmap
ldflags-y += --wrap=__devm_request_region ldflags-y += --wrap=__devm_request_region
......
...@@ -193,6 +193,12 @@ void __iomem *__wrap_ioremap_nocache(resource_size_t offset, unsigned long size) ...@@ -193,6 +193,12 @@ void __iomem *__wrap_ioremap_nocache(resource_size_t offset, unsigned long size)
} }
EXPORT_SYMBOL(__wrap_ioremap_nocache); EXPORT_SYMBOL(__wrap_ioremap_nocache);
void __iomem *__wrap_ioremap(resource_size_t offset, unsigned long size)
{
return __nfit_test_ioremap(offset, size, ioremap);
}
EXPORT_SYMBOL(__wrap_ioremap);
void __iomem *__wrap_ioremap_wc(resource_size_t offset, unsigned long size) void __iomem *__wrap_ioremap_wc(resource_size_t offset, unsigned long size)
{ {
return __nfit_test_ioremap(offset, size, ioremap_wc); return __nfit_test_ioremap(offset, size, ioremap_wc);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment