]> asedeno.scripts.mit.edu Git - linux.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)
commitb4d8c7aea15efa8c6272c58d78296f8b017c4c6a
tree0453d3f0adea64293f7478e140b3a099c4ca56cd
parent21aff52ab2c831c2f07d48e2fa8d4bab26a66992
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