Skip to content

Commit e436576

Browse files
DerDakonjoergroedel
authored andcommitted
iommu: make inclusion of arm/arm-smmu-v3 directory conditional
Nothing in there is active if CONFIG_ARM_SMMU_V3 is not enabled, so the whole directory can depend on that switch as well. Fixes: e86d1aa ("iommu/arm-smmu: Move Arm SMMU drivers into their own subdirectory") Signed-off-by: Rolf Eike Beer <eb@emlix.com> Reviewed-by: Lu Baolu <baolu.lu@linux.intel.com> Link: https://lore.kernel.org/r/2434059.NG923GbCHz@devpool92.emlix.com Signed-off-by: Joerg Roedel <jroedel@suse.de>
1 parent 01c13a1 commit e436576

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

drivers/iommu/arm/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
# SPDX-License-Identifier: GPL-2.0
2-
obj-y += arm-smmu/ arm-smmu-v3/
2+
obj-y += arm-smmu/
3+
obj-$(CONFIG_ARM_SMMU_V3) += arm-smmu-v3/

drivers/iommu/arm/arm-smmu-v3/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# SPDX-License-Identifier: GPL-2.0
2-
obj-$(CONFIG_ARM_SMMU_V3) += arm_smmu_v3.o
2+
obj-y += arm_smmu_v3.o
33
arm_smmu_v3-y := arm-smmu-v3.o
44
arm_smmu_v3-$(CONFIG_ARM_SMMU_V3_IOMMUFD) += arm-smmu-v3-iommufd.o
55
arm_smmu_v3-$(CONFIG_ARM_SMMU_V3_SVA) += arm-smmu-v3-sva.o

0 commit comments

Comments
 (0)