summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorDan Williams <dan.j.williams@intel.com>2016-01-22 09:43:28 -0800
committerDan Williams <dan.j.williams@intel.com>2016-01-31 09:10:19 -0800
commit76e9f0ee52b0be5761e29847e0ef01f23f24f1df (patch)
tree0efd20fa750dc2caf479fd0164493d5b50653413 /tools
parent03fc2da63b9a33dce784a2075c7e068bb97cbf69 (diff)
downloadlinux-76e9f0ee52b0be5761e29847e0ef01f23f24f1df.tar.gz
linux-76e9f0ee52b0be5761e29847e0ef01f23f24f1df.tar.bz2
linux-76e9f0ee52b0be5761e29847e0ef01f23f24f1df.zip
phys_to_pfn_t: use phys_addr_t
A dma_addr_t is potentially smaller than a phys_addr_t on some archs. Don't truncate the address when doing the pfn conversion. Cc: Ross Zwisler <ross.zwisler@linux.intel.com> Reported-by: Matthew Wilcox <willy@linux.intel.com> [willy: fix pfn_t_to_phys as well] Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/testing/nvdimm/test/iomap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/nvdimm/test/iomap.c b/tools/testing/nvdimm/test/iomap.c
index 7ec7df9e7fc7..0c1a7e65bb81 100644
--- a/tools/testing/nvdimm/test/iomap.c
+++ b/tools/testing/nvdimm/test/iomap.c
@@ -113,7 +113,7 @@ void *__wrap_devm_memremap_pages(struct device *dev, struct resource *res,
}
EXPORT_SYMBOL(__wrap_devm_memremap_pages);
-pfn_t __wrap_phys_to_pfn_t(dma_addr_t addr, unsigned long flags)
+pfn_t __wrap_phys_to_pfn_t(phys_addr_t addr, unsigned long flags)
{
struct nfit_test_resource *nfit_res = get_nfit_res(addr);