Skip to content

Commit 01c13a1

Browse files
DerDakonjoergroedel
authored andcommitted
iommu: make inclusion of riscv directory conditional
Nothing in there is active if CONFIG_RISCV_IOMMU is not enabled, so the whole directory can depend on that switch as well. Fixes: 5c0ebbd ("iommu/riscv: Add RISC-V IOMMU platform device driver") Signed-off-by: Rolf Eike Beer <eb@emlix.com> Reviewed-by: Lu Baolu <baolu.lu@linux.intel.com> Link: https://lore.kernel.org/r/2235451.Icojqenx9y@devpool92.emlix.com Signed-off-by: Joerg Roedel <jroedel@suse.de>
1 parent 85ef671 commit 01c13a1

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

drivers/iommu/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# SPDX-License-Identifier: GPL-2.0
2-
obj-y += arm/ iommufd/ riscv/
2+
obj-y += arm/ iommufd/
33
obj-$(CONFIG_AMD_IOMMU) += amd/
44
obj-$(CONFIG_INTEL_IOMMU) += intel/
5+
obj-$(CONFIG_RISCV_IOMMU) += riscv/
56
obj-$(CONFIG_IOMMU_API) += iommu.o
67
obj-$(CONFIG_IOMMU_SUPPORT) += iommu-pages.o
78
obj-$(CONFIG_IOMMU_API) += iommu-traces.o

drivers/iommu/riscv/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
# SPDX-License-Identifier: GPL-2.0-only
2-
obj-$(CONFIG_RISCV_IOMMU) += iommu.o iommu-platform.o
2+
obj-y += iommu.o iommu-platform.o
33
obj-$(CONFIG_RISCV_IOMMU_PCI) += iommu-pci.o

0 commit comments

Comments
 (0)