• T
    iommu: Add dummy implementations for !IOMMU_IOVA · 21aff52a
    Thierry Reding 提交于
    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: NThierry Reding <treding@nvidia.com>
    Signed-off-by: NJoerg Roedel <jroedel@suse.de>
    21aff52a
iova.h 5.0 KB