]> asedeno.scripts.mit.edu Git - linux.git/commit
iommu: Add dummy implementations for !IOMMU_IOVA
authorThierry Reding <treding@nvidia.com>
Mon, 20 Mar 2017 19:11:28 +0000 (20:11 +0100)
committerJoerg Roedel <jroedel@suse.de>
Wed, 22 Mar 2017 14:54:07 +0000 (15:54 +0100)
commit21aff52ab2c831c2f07d48e2fa8d4bab26a66992
tree40ba17bfdb2e5222a823e36b86dfe69243ca1c4c
parent82df0a4368c62e68d6622e19a8f4dca2c7eccd3a
iommu: Add dummy implementations for !IOMMU_IOVA

Currently, building code which uses the API guarded by the IOMMU_IOVA
will fail to link if IOMMU_IOVA is not enabled. Often this code will be
using the API provided by the IOMMU_API Kconfig symbol, but support for
this can be optional, with code falling back to contiguous memory. This
commit implements dummy functions for the IOVA API so that it can be
compiled out.

With both IOMMU_API and IOMMU_IOVA optional, code can now be built with
or without support for IOMMU without having to resort to #ifdefs in the
user code.

Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
include/linux/iova.h