]> git.baikalelectronics.ru Git - kernel.git/commit
ACPI/IORT: Fix CONFIG_IOMMU_API dependency
authorLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Fri, 28 Apr 2017 15:59:49 +0000 (16:59 +0100)
committerJoerg Roedel <jroedel@suse.de>
Fri, 28 Apr 2017 22:02:14 +0000 (00:02 +0200)
commit574ae066285ad6601bb09e82b2d6a257d1875c59
tree6f480dc8d2480e38ec7109cf49094dee3459a42c
parent7f5af2050fa41ce242933bc7e3db00d38a5a0c1b
ACPI/IORT: Fix CONFIG_IOMMU_API dependency

The IOMMU probe deferral IORT rework had to add code in
iort_iommu_configure() and iort_iommu_xlate() that requires
the IOMMU_API to be selected in order to compile and work.

Stub out the pieces of code that depend on CONFIG_IOMMU_API
to be selected to prevent compilation failures such as:

drivers/acpi/arm64/iort.c: In function 'iort_iommu_xlate':
drivers/acpi/arm64/iort.c:647:22: error: 'struct iommu_fwspec' has no
member named 'ops'

by wrapping the code in static inline functions that provide a NOP
implementation when CONFIG_IOMMU_API is not selected.

Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Reported-by: Arnd Bergmann <arnd@arndb.de>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Will Deacon <will.deacon@arm.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Robin Murphy <robin.murphy@arm.com>
Cc: Joerg Roedel <joro@8bytes.org>
Cc: Sricharan R <sricharan@codeaurora.org>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/acpi/arm64/iort.c