diff options
author | Dan Williams <dan.j.williams@intel.com> | 2015-12-15 00:34:21 -0800 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2015-12-15 00:34:21 -0800 |
commit | 979fccfb7348dbd968daf0249aa484a0297f83df (patch) | |
tree | 76cb63d09fefff94740d5c0154c83783ee78c3de /tools/testing/nvdimm/Kbuild | |
parent | 2dc43331e34fa992a67f42ed44e5111cafafd6f3 (diff) | |
download | linux-979fccfb7348dbd968daf0249aa484a0297f83df.tar.bz2 |
libnvdimm, pfn: enable pfn sysfs interface unit testing
The unit test infrastructure uses CMA and real memory to emulate nvdimm
resources. The call to devm_memremap_pages() can simply be mocked in
the same manner as memremap and we mock phys_to_pfn_t() to clear PFN_MAP
since these resources are not registered with in the pgmap_radix.
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'tools/testing/nvdimm/Kbuild')
-rw-r--r-- | tools/testing/nvdimm/Kbuild | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/testing/nvdimm/Kbuild b/tools/testing/nvdimm/Kbuild index 38b00ecb2ed5..a34bfd0c8928 100644 --- a/tools/testing/nvdimm/Kbuild +++ b/tools/testing/nvdimm/Kbuild @@ -9,6 +9,8 @@ ldflags-y += --wrap=memunmap ldflags-y += --wrap=__devm_request_region ldflags-y += --wrap=__request_region ldflags-y += --wrap=__release_region +ldflags-y += --wrap=devm_memremap_pages +ldflags-y += --wrap=phys_to_pfn_t DRIVERS := ../../../drivers NVDIMM_SRC := $(DRIVERS)/nvdimm |