Skip to content

Commit e18a8c1

Browse files
krzkjoergroedel
authored andcommitted
ia64: 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 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 is not selected). For the case when INTEL_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 INTEL_IOMMU not. Reported-by: kbuild test robot <[email protected]> Fixes: e93a169 ("iommu: Enable compile testing for some of drivers") Signed-off-by: Krzysztof Kozlowski <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Joerg Roedel <[email protected]>
1 parent 9cb1fd0 commit e18a8c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/ia64/include/asm/device.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
#define _ASM_IA64_DEVICE_H
77

88
struct dev_archdata {
9-
#ifdef CONFIG_INTEL_IOMMU
9+
#ifdef CONFIG_IOMMU_API
1010
void *iommu; /* hook for IOMMU specific extension */
1111
#endif
1212
};

0 commit comments

Comments
 (0)