aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/dma-mapping.h
diff options
context:
space:
mode:
authorNiklas Söderlund <niklas.soderlund+renesas@ragnatech.se>2016-09-29 12:02:39 +0200
committerVinod Koul <vinod.koul@intel.com>2016-09-29 17:38:02 +0530
commit2895e1f8048d1be7b1b5be6439c740621c0e5361 (patch)
treea54fc433d6304d9a24c532d5b37f37149c5c12fa /include/linux/dma-mapping.h
parentdmaengine: rcar-dmac: add iommu support for slave transfers (diff)
downloadlinux-dev-2895e1f8048d1be7b1b5be6439c740621c0e5361.tar.xz
linux-dev-2895e1f8048d1be7b1b5be6439c740621c0e5361.zip
dma-mapping: fix ia64 build, use PHYS_PFN
kbuild test robot reports: In file included from include/linux/skbuff.h:34:0, from include/linux/tcp.h:21, from drivers/net/ethernet/amd/xgbe/xgbe-drv.c:119: include/linux/dma-mapping.h: In function 'dma_map_resource': >> include/linux/dma-mapping.h:274:22: error: implicit declaration of function '__phys_to_pfn' [-Werror=implicit-function-declaration] unsigned long pfn = __phys_to_pfn(phys_addr); ^~~~~~~~~~~~~ ia64 does not provide __phys_to_pfn(), use the PHYS_PFN() alias. Signed-off-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se> Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Diffstat (limited to 'include/linux/dma-mapping.h')
-rw-r--r--include/linux/dma-mapping.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/dma-mapping.h b/include/linux/dma-mapping.h
index 6e00c7fdbbd3..ff7c87fb0305 100644
--- a/include/linux/dma-mapping.h
+++ b/include/linux/dma-mapping.h
@@ -271,7 +271,7 @@ static inline dma_addr_t dma_map_resource(struct device *dev,
unsigned long attrs)
{
struct dma_map_ops *ops = get_dma_ops(dev);
- unsigned long pfn = __phys_to_pfn(phys_addr);
+ unsigned long pfn = PHYS_PFN(phys_addr);
dma_addr_t addr;
BUG_ON(!valid_dma_direction(dir));