]> git.baikalelectronics.ru Git - kernel.git/commit
iommu/mediatek: Include linux/dma-mapping.h
authorArnd Bergmann <arnd@arndb.de>
Thu, 11 May 2017 11:35:51 +0000 (13:35 +0200)
committerJoerg Roedel <jroedel@suse.de>
Wed, 17 May 2017 12:51:54 +0000 (14:51 +0200)
commitb714025807366d1925df5c9deccf14bd83e34b02
tree5743785229b0194db6e91f0035bab7b9bb631159
parent5b10bc4416c8787feccd25b4a1c47ce2595bc2d0
iommu/mediatek: Include linux/dma-mapping.h

The mediatek iommu driver relied on an implicit include of dma-mapping.h,
but for some reason that is no longer there in 4.12-rc1:

drivers/iommu/mtk_iommu_v1.c: In function 'mtk_iommu_domain_finalise':
drivers/iommu/mtk_iommu_v1.c:233:16: error: implicit declaration of function 'dma_zalloc_coherent'; did you mean 'debug_dma_alloc_coherent'? [-Werror=implicit-function-declaration]
drivers/iommu/mtk_iommu_v1.c: In function 'mtk_iommu_domain_free':
drivers/iommu/mtk_iommu_v1.c:265:2: error: implicit declaration of function 'dma_free_coherent'; did you mean 'debug_dma_free_coherent'? [-Werror=implicit-function-declaration]

This adds an explicit #include to make it build again.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Fixes: 7c6f53256f ('iommu: Remove trace-events include from iommu.h')
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/mtk_iommu_v1.c