phys_to_pfn_t: use phys_addr_t
authorDan Williams <dan.j.williams@intel.com>
Fri, 22 Jan 2016 17:43:28 +0000 (09:43 -0800)
committerDan Williams <dan.j.williams@intel.com>
Sun, 31 Jan 2016 17:10:19 +0000 (09:10 -0800)
commit76e9f0ee52b0be5761e29847e0ef01f23f24f1df
tree0efd20fa750dc2caf479fd0164493d5b50653413
parent03fc2da63b9a33dce784a2075c7e068bb97cbf69
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>
include/linux/pfn_t.h
kernel/memremap.c
tools/testing/nvdimm/test/iomap.c