]> 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)
commitaef3d285a93c6505c18efb1a423f4081d229561a
tree0453d3f0adea64293f7478e140b3a099c4ca56cd
parentde85d9aec5ba0897f5316b219846a2aaa593b3f8
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