]> www.infradead.org Git - users/jedix/linux-maple.git/commit
libnvdimm, pfn: enable pfn sysfs interface unit testing
authorDan Williams <dan.j.williams@intel.com>
Tue, 15 Dec 2015 08:34:21 +0000 (00:34 -0800)
committerDan Duval <dan.duval@oracle.com>
Wed, 7 Dec 2016 17:25:31 +0000 (12:25 -0500)
commit2b561a4e021b5a5dd36515e2a9072808594bbc3b
tree68673a66c2344c2262bb160ed5e243a2f5ce5292
parent108d3e4e74c40a7b16201f683d055701d81d1792
libnvdimm, pfn: enable pfn sysfs interface unit testing

Orabug: 22913653

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>
(cherry picked from commit 979fccfb7348dbd968daf0249aa484a0297f83df)
Signed-off-by: Dan Duval <dan.duval@oracle.com>
tools/testing/nvdimm/Kbuild
tools/testing/nvdimm/test/iomap.c