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,
Bert Karwatzki <spasswolf@web.de>,
Lu Baolu <baolu.lu@linux.intel.com>
Subject: [PATCH 4/6] iommu: make inclusion of riscv directory conditional
Date: Mon, 12 May 2025 15:13:43 +0200 [thread overview]
Message-ID: <2235451.Icojqenx9y@devpool92.emlix.com> (raw)
In-Reply-To: <1926170.CQOukoFCf9@devpool92.emlix.com>
Nothing in there is active if CONFIG_RISCV_IOMMU is not enabled, so the whole
directory can depend on that switch as well.
Fixes: 5c0ebbd3c6c6 ("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>
---
drivers/iommu/Makefile | 3 ++-
drivers/iommu/riscv/Makefile | 2 +-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/drivers/iommu/Makefile b/drivers/iommu/Makefile
index a486032d3e079..355294fa9033f 100644
--- a/drivers/iommu/Makefile
+++ b/drivers/iommu/Makefile
@@ -1,7 +1,8 @@
# SPDX-License-Identifier: GPL-2.0
-obj-y += arm/ iommufd/ riscv/
+obj-y += arm/ iommufd/
obj-$(CONFIG_AMD_IOMMU) += amd/
obj-$(CONFIG_INTEL_IOMMU) += intel/
+obj-$(CONFIG_RISCV_IOMMU) += riscv/
obj-$(CONFIG_IOMMU_API) += iommu.o
obj-$(CONFIG_IOMMU_SUPPORT) += iommu-pages.o
obj-$(CONFIG_IOMMU_API) += iommu-traces.o
diff --git a/drivers/iommu/riscv/Makefile b/drivers/iommu/riscv/Makefile
index f54c9ed17d41d..b5929f9f23e64 100644
--- a/drivers/iommu/riscv/Makefile
+++ b/drivers/iommu/riscv/Makefile
@@ -1,3 +1,3 @@
# SPDX-License-Identifier: GPL-2.0-only
-obj-$(CONFIG_RISCV_IOMMU) += iommu.o iommu-platform.o
+obj-y += iommu.o iommu-platform.o
obj-$(CONFIG_RISCV_IOMMU_PCI) += iommu-pci.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-05-12 13:16 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-12 13:07 [PATCHv3 0/6] make vendor specific subdirectory inclusion conditional Rolf Eike Beer
2025-05-12 13:10 ` [PATCH 1/6] iommu: remove duplicate selection of DMAR_TABLE Rolf Eike Beer
2025-05-12 13:11 ` [PATCH 2/6] iommu: make inclusion of intel directory conditional Rolf Eike Beer
2025-05-12 13:12 ` [PATCH 3/6] iommu: make inclusion of amd " Rolf Eike Beer
2025-05-12 13:13 ` Rolf Eike Beer [this message]
2025-05-12 13:14 ` [PATCH 5/6] iommu: make inclusion of arm/arm-smmu-v3 " Rolf Eike Beer
2025-05-12 13:15 ` [PATCH 6/6] iommu: make inclusion of iommufd " Rolf Eike Beer
2025-05-16 12:52 ` Joerg Roedel
2025-05-19 6:16 ` Rolf Eike Beer
2025-05-26 5:59 ` Rolf Eike Beer
2025-05-16 6:47 ` [PATCHv3 0/6] make vendor specific subdirectory inclusion conditional Joerg Roedel
-- strict thread matches above, loose matches on Subject: below --
2025-03-20 9:01 [PATCHv2 " Rolf Eike Beer
2025-03-20 9:16 ` [PATCH 4/6] iommu: make inclusion of riscv directory conditional Rolf Eike Beer
2025-03-21 2:08 ` Baolu Lu
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=2235451.Icojqenx9y@devpool92.emlix.com \
--to=eb@emlix.com \
--cc=baolu.lu@linux.intel.com \
--cc=iommu@lists.linux.dev \
--cc=joro@8bytes.org \
--cc=linux-kernel@vger.kernel.org \
--cc=spasswolf@web.de \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.