dma-mapping: fix ia64 build, use PHYS_PFN
authorNiklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Thu, 29 Sep 2016 10:02:39 +0000 (12:02 +0200)
committerVinod Koul <vinod.koul@intel.com>
Thu, 29 Sep 2016 12:08:02 +0000 (17:38 +0530)
commit2895e1f8048d1be7b1b5be6439c740621c0e5361
treea54fc433d6304d9a24c532d5b37f37149c5c12fa
parent9f878603dbdb7db357fc7d6f60b55a0b9fd6e2f0
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>
include/linux/dma-mapping.h