]> git.baikalelectronics.ru Git - kernel.git/commit
iommu/iova: Fix compile error with CONFIG_IOMMU_IOVA=m
authorJoerg Roedel <jroedel@suse.de>
Wed, 22 Mar 2017 23:06:17 +0000 (00:06 +0100)
committerJoerg Roedel <jroedel@suse.de>
Wed, 22 Mar 2017 23:06:17 +0000 (00:06 +0100)
commit754f0e86294ea95fecb5cc0d97dfe29c7bf3efea
tree0453d3f0adea64293f7478e140b3a099c4ca56cd
parent060a3d0686d917946404c0f6cf2477b4506f95c6
iommu/iova: Fix compile error with CONFIG_IOMMU_IOVA=m

The #ifdef in iova.h only catches the CONFIG_IOMMU_IOVA=y
case, so that compilation as a module fails with duplicate
function definition errors. Fix it by catching both cases in
the #if.

Signed-off-by: Joerg Roedel <jroedel@suse.de>
include/linux/iova.h