diff options
author | Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se> | 2016-09-29 15:59:15 -0400 |
---|---|---|
committer | Vinod Koul <vinod.koul@intel.com> | 2016-09-30 13:51:05 -0400 |
commit | 2e0cc304e984290935c70fdbe589931e552d7d94 (patch) | |
tree | efc9b87b2b55c190bc54fde2e1f5f7f99e482348 /lib/dma-debug.c | |
parent | 3757dc48a66f829cf6ba82a612ba4587ab4b5f1c (diff) |
dma-debug: fix ia64 build, use PHYS_PFN
kbuild test robot reports:
lib/dma-debug.c: In function 'debug_dma_map_resource':
>> lib/dma-debug.c:1541:16: error: implicit declaration of function '__phys_to_pfn' [-Werror=implicit-function-declaration]
entry->pfn = __phys_to_pfn(addr);
^~~~~~~~~~~~~
ia64 does not provide __phys_to_pfn(), use the PHYS_PFN() alias.
Fixes: 0e74b34dfc3318bf ("dma-debug: add support for resource mappings")
Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'lib/dma-debug.c')
-rw-r--r-- | lib/dma-debug.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/dma-debug.c b/lib/dma-debug.c index 2ba086b0d3e7..59e75863bfa0 100644 --- a/lib/dma-debug.c +++ b/lib/dma-debug.c | |||
@@ -1514,7 +1514,7 @@ void debug_dma_map_resource(struct device *dev, phys_addr_t addr, size_t size, | |||
1514 | 1514 | ||
1515 | entry->type = dma_debug_resource; | 1515 | entry->type = dma_debug_resource; |
1516 | entry->dev = dev; | 1516 | entry->dev = dev; |
1517 | entry->pfn = __phys_to_pfn(addr); | 1517 | entry->pfn = PHYS_PFN(addr); |
1518 | entry->offset = offset_in_page(addr); | 1518 | entry->offset = offset_in_page(addr); |
1519 | entry->size = size; | 1519 | entry->size = size; |
1520 | entry->dev_addr = dma_addr; | 1520 | entry->dev_addr = dma_addr; |