From: Rolf Eike Beer <eb@emlix.com>
To: Joerg Roedel <joro@8bytes.org>, Will Deacon <will@kernel.org>
Cc: iommu@lists.linux.dev, linux-kernel@vger.kernel.org,
Robin Murphy <robin.murphy@arm.com>,
linux-arm-kernel@lists.infradead.org
Subject: [PATCH 5/6] iommu: make inclusion of arm/arm-smmu-v3 directory conditional
Date: Thu, 20 Mar 2025 10:19:12 +0100 [thread overview]
Message-ID: <6164975.lOV4Wx5bFT@devpool47.emlix.com> (raw)
In-Reply-To: <12652899.O9o76ZdvQC@devpool47.emlix.com>
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: e86d1aa8b60f ("iommu/arm-smmu: Move Arm SMMU drivers into their own subdirectory")
Signed-off-by: Rolf Eike Beer <eb@emlix.com>
---
drivers/iommu/arm/Makefile | 3 ++-
drivers/iommu/arm/arm-smmu-v3/Makefile | 2 +-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/drivers/iommu/arm/Makefile b/drivers/iommu/arm/Makefile
index 0f9efeab709f..35a7e13eef34 100644
--- a/drivers/iommu/arm/Makefile
+++ b/drivers/iommu/arm/Makefile
@@ -1,2 +1,3 @@
# SPDX-License-Identifier: GPL-2.0
-obj-y += arm-smmu/ arm-smmu-v3/
+obj-y += arm-smmu/
+obj-$(CONFIG_ARM_SMMU_V3) += arm-smmu-v3/
diff --git a/drivers/iommu/arm/arm-smmu-v3/Makefile b/drivers/iommu/arm/arm-smmu-v3/Makefile
index 493a659cc66b..6cc7c8557b9e 100644
--- a/drivers/iommu/arm/arm-smmu-v3/Makefile
+++ b/drivers/iommu/arm/arm-smmu-v3/Makefile
@@ -1,5 +1,5 @@
# SPDX-License-Identifier: GPL-2.0
-obj-$(CONFIG_ARM_SMMU_V3) += arm_smmu_v3.o
+obj-y += arm_smmu_v3.o
arm_smmu_v3-y := arm-smmu-v3.o
arm_smmu_v3-$(CONFIG_ARM_SMMU_V3_IOMMUFD) += arm-smmu-v3-iommufd.o
arm_smmu_v3-$(CONFIG_ARM_SMMU_V3_SVA) += arm-smmu-v3-sva.o
--
2.49.0
--
Rolf Eike Beer
emlix GmbH
Headquarters: Berliner Str. 12, 37073 Göttingen, Germany
Phone +49 (0)551 30664-0, e-mail info@emlix.com
District Court of Göttingen, Registry Number HR B 3160
Managing Directors: Heike Jordan, Dr. Uwe Kracke
VAT ID No. DE 205 198 055
Office Berlin: Panoramastr. 1, 10178 Berlin, Germany
Office Bonn: Bachstr. 6, 53115 Bonn, Germany
http://www.emlix.com
emlix - your embedded Linux partner
next prev parent reply other threads:[~2025-03-20 9:31 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-20 9:01 [PATCHv2 0/6] make vendor specific subdirectory inclusion conditional Rolf Eike Beer
2025-03-20 9:05 ` [PATCH 1/6] iommu: remove duplicate selection of DMAR_TABLE Rolf Eike Beer
2025-03-21 1:56 ` Baolu Lu
2025-03-20 9:07 ` [PATCH 2/6] iommu: make inclusion of intel directory conditional Rolf Eike Beer
2025-03-21 2:04 ` Baolu Lu
2025-03-20 9:14 ` [PATCH 3/6] iommu: make inclusion of amd " Rolf Eike Beer
2025-03-21 2:06 ` Baolu Lu
2025-03-20 9:16 ` [PATCH 4/6] iommu: make inclusion of riscv " Rolf Eike Beer
2025-03-21 2:08 ` Baolu Lu
2025-03-20 9:19 ` Rolf Eike Beer [this message]
2025-03-21 2:11 ` [PATCH 5/6] iommu: make inclusion of arm/arm-smmu-v3 " Baolu Lu
2025-03-20 9:22 ` [PATCH 6/6] iommu: make inclusion of iommufd " Rolf Eike Beer
2025-03-21 2:14 ` Baolu Lu
2025-04-17 14:32 ` [PATCHv2 0/6] make vendor specific subdirectory inclusion conditional Joerg Roedel
2025-04-22 6:35 ` Rolf Eike Beer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=6164975.lOV4Wx5bFT@devpool47.emlix.com \
--to=eb@emlix.com \
--cc=iommu@lists.linux.dev \
--cc=joro@8bytes.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=robin.murphy@arm.com \
--cc=will@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox