diff options
author | Max Filippov <jcmvbkbc@gmail.com> | 2015-11-07 04:59:51 +0100 |
---|---|---|
committer | Max Filippov <jcmvbkbc@gmail.com> | 2015-11-08 23:25:38 +0100 |
commit | 4c3dab398d1317546d22b27be1a73b2c83ec7153 (patch) | |
tree | 29cb959bef3622113dfe2e5f15bbe7dfdd696ab1 /arch/xtensa/include | |
parent | xtensa: support DMA to high memory (diff) | |
download | linux-4c3dab398d1317546d22b27be1a73b2c83ec7153.tar.xz linux-4c3dab398d1317546d22b27be1a73b2c83ec7153.zip |
xtensa: implement dma_to_phys and phys_to_dma
This fixes the following build error seen in -next:
drivers/gpu/drm/nouveau/nvkm/subdev/instmem/gk20a.c:143:2: error:
implicit declaration of function 'dma_to_phys'
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Diffstat (limited to 'arch/xtensa/include')
-rw-r--r-- | arch/xtensa/include/asm/dma-mapping.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/arch/xtensa/include/asm/dma-mapping.h b/arch/xtensa/include/asm/dma-mapping.h index 4427f38b634e..66c9ba261e30 100644 --- a/arch/xtensa/include/asm/dma-mapping.h +++ b/arch/xtensa/include/asm/dma-mapping.h @@ -35,4 +35,14 @@ static inline struct dma_map_ops *get_dma_ops(struct device *dev) void dma_cache_sync(struct device *dev, void *vaddr, size_t size, enum dma_data_direction direction); +static inline dma_addr_t phys_to_dma(struct device *dev, phys_addr_t paddr) +{ + return (dma_addr_t)paddr; +} + +static inline phys_addr_t dma_to_phys(struct device *dev, dma_addr_t daddr) +{ + return (phys_addr_t)daddr; +} + #endif /* _XTENSA_DMA_MAPPING_H */ |