]> git.baikalelectronics.ru Git - kernel.git/commit
x86: Hide the archdata.iommu field behind generic IOMMU_API
authorKrzysztof Kozlowski <krzk@kernel.org>
Mon, 18 May 2020 12:08:55 +0000 (14:08 +0200)
committerJoerg Roedel <jroedel@suse.de>
Wed, 27 May 2020 14:44:05 +0000 (16:44 +0200)
commit2cf526996ea754936bc6a1c7146e9b32b4df11f2
treee615872fc89e99c1312a832e6a58773ad116d4fd
parent493b7f7d45005bbbbffe60915934be25691250e2
x86: Hide the archdata.iommu field behind generic IOMMU_API

There is a generic, kernel wide configuration symbol for enabling the
IOMMU specific bits: CONFIG_IOMMU_API.  Implementations (including
INTEL_IOMMU and AMD_IOMMU driver) select it so use it here as well.

This makes the conditional archdata.iommu field consistent with other
platforms and also fixes any compile test builds of other IOMMU drivers,
when INTEL_IOMMU or AMD_IOMMU are not selected).

For the case when INTEL_IOMMU/AMD_IOMMU and COMPILE_TEST are not
selected, this should create functionally equivalent code/choice.  With
COMPILE_TEST this field could appear if other IOMMU drivers are chosen
but neither INTEL_IOMMU nor AMD_IOMMU are not.

Reported-by: kbuild test robot <lkp@intel.com>
Fixes: f76d9909dcdf ("iommu: Enable compile testing for some of drivers")
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Acked-by: Borislav Petkov <bp@suse.de>
Link: https://lore.kernel.org/r/20200518120855.27822-2-krzk@kernel.org
Signed-off-by: Joerg Roedel <jroedel@suse.de>
arch/x86/include/asm/device.h