diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2019-12-21 15:12:26 -0800 | 
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2019-12-21 15:12:26 -0800 | 
| commit | 4746104a6f599f213c3d97d8c39032953fd4580f (patch) | |
| tree | 05266de13c74d137d30e4a46939ff8de16a22afc | |
| parent | 60b04df6bfbf7e65954c44f7945b381e0fee5b6a (diff) | |
| parent | c1468554776229d0db69e74a9aaf6f7e7095fd51 (diff) | |
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
| -rw-r--r-- | tools/testing/nvdimm/Kbuild | 1 | ||||
| -rw-r--r-- | tools/testing/nvdimm/test/iomap.c | 6 | 
2 files changed, 7 insertions, 0 deletions
| diff --git a/tools/testing/nvdimm/Kbuild b/tools/testing/nvdimm/Kbuild index c4a9196d794c..6aca8d5be159 100644 --- a/tools/testing/nvdimm/Kbuild +++ b/tools/testing/nvdimm/Kbuild @@ -5,6 +5,7 @@ ldflags-y += --wrap=devm_ioremap_nocache  ldflags-y += --wrap=devm_memremap  ldflags-y += --wrap=devm_memunmap  ldflags-y += --wrap=ioremap_nocache +ldflags-y += --wrap=ioremap  ldflags-y += --wrap=iounmap  ldflags-y += --wrap=memunmap  ldflags-y += --wrap=__devm_request_region diff --git a/tools/testing/nvdimm/test/iomap.c b/tools/testing/nvdimm/test/iomap.c index 3f55f2f99112..6271ac757a4b 100644 --- a/tools/testing/nvdimm/test/iomap.c +++ b/tools/testing/nvdimm/test/iomap.c @@ -193,6 +193,12 @@ void __iomem *__wrap_ioremap_nocache(resource_size_t offset, unsigned long size)  }  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)  {  	return __nfit_test_ioremap(offset, size, ioremap_wc); | 
