aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorRolf Eike Beer <eb@emlix.com>2025-05-12 15:12:52 +0200
committerJoerg Roedel <jroedel@suse.de>2025-05-16 08:46:46 +0200
commit85ef671f9727aac580924cc1ce1ca0892524beee (patch)
treecd949900f0adece9b01f5310d92b79114d5acae7
parentiommu: make inclusion of intel directory conditional (diff)
downloadwireguard-linux-85ef671f9727aac580924cc1ce1ca0892524beee.tar.xz
wireguard-linux-85ef671f9727aac580924cc1ce1ca0892524beee.zip
iommu: make inclusion of amd directory conditional
Nothing in there is active if CONFIG_AMD_IOMMU is not enabled, so the whole directory can depend on that switch as well. Fixes: cbe94c6e1a7d ("iommu/amd: Move Kconfig and Makefile bits down into amd directory") Signed-off-by: Rolf Eike Beer <eb@emlix.com> Reviewed-by: Lu Baolu <baolu.lu@linux.intel.com> Link: https://lore.kernel.org/r/1894970.atdPhlSkOF@devpool92.emlix.com Signed-off-by: Joerg Roedel <jroedel@suse.de>
-rw-r--r--drivers/iommu/Makefile3
-rw-r--r--drivers/iommu/amd/Makefile2
2 files changed, 3 insertions, 2 deletions
diff --git a/drivers/iommu/Makefile b/drivers/iommu/Makefile
index 53f800075398..a486032d3e07 100644
--- a/drivers/iommu/Makefile
+++ b/drivers/iommu/Makefile
@@ -1,5 +1,6 @@
# SPDX-License-Identifier: GPL-2.0
-obj-y += amd/ arm/ iommufd/ riscv/
+obj-y += arm/ iommufd/ riscv/
+obj-$(CONFIG_AMD_IOMMU) += amd/
obj-$(CONFIG_INTEL_IOMMU) += intel/
obj-$(CONFIG_IOMMU_API) += iommu.o
obj-$(CONFIG_IOMMU_SUPPORT) += iommu-pages.o
diff --git a/drivers/iommu/amd/Makefile b/drivers/iommu/amd/Makefile
index 9de33b2d42f5..59c04a67f398 100644
--- a/drivers/iommu/amd/Makefile
+++ b/drivers/iommu/amd/Makefile
@@ -1,3 +1,3 @@
# SPDX-License-Identifier: GPL-2.0-only
-obj-$(CONFIG_AMD_IOMMU) += iommu.o init.o quirks.o io_pgtable.o io_pgtable_v2.o ppr.o pasid.o
+obj-y += iommu.o init.o quirks.o io_pgtable.o io_pgtable_v2.o ppr.o pasid.o
obj-$(CONFIG_AMD_IOMMU_DEBUGFS) += debugfs.o