Skip to content

Commit 4746104

Browse files
committed
Merge tag 'libnvdimm-fix-5.5-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm
Pull libnvdimm fix from Dan Williams: "A minor regression fix. The libnvdimm unit tests were expecting to mock calls to ioremap_nocache() which disappeared in v5.5-rc1. This fix has appeared in -next and collided with some cleanups that Christoph has planned for v5.6, but he will fix up his branch once this goes in. Summary: - Restore the operation of the libnvdimm unit tests after the removal of ioremap_nocache()" * tag 'libnvdimm-fix-5.5-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/nvdimm/nvdimm: tools/testing/nvdimm: Fix mock support for ioremap
2 parents 60b04df + c146855 commit 4746104

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

tools/testing/nvdimm/Kbuild

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ ldflags-y += --wrap=devm_ioremap_nocache
55
ldflags-y += --wrap=devm_memremap
66
ldflags-y += --wrap=devm_memunmap
77
ldflags-y += --wrap=ioremap_nocache
8+
ldflags-y += --wrap=ioremap
89
ldflags-y += --wrap=iounmap
910
ldflags-y += --wrap=memunmap
1011
ldflags-y += --wrap=__devm_request_region

tools/testing/nvdimm/test/iomap.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,12 @@ void __iomem *__wrap_ioremap_nocache(resource_size_t offset, unsigned long size)
193193
}
194194
EXPORT_SYMBOL(__wrap_ioremap_nocache);
195195

196+
void __iomem *__wrap_ioremap(resource_size_t offset, unsigned long size)
197+
{
198+
return __nfit_test_ioremap(offset, size, ioremap);
199+
}
200+
EXPORT_SYMBOL(__wrap_ioremap);
201+
196202
void __iomem *__wrap_ioremap_wc(resource_size_t offset, unsigned long size)
197203
{
198204
return __nfit_test_ioremap(offset, size, ioremap_wc);

0 commit comments

Comments
 (0)