* [PATCH 5/6] iommu: make inclusion of arm/arm-smmu-v3 directory conditional
[not found] <12652899.O9o76ZdvQC@devpool47.emlix.com>
@ 2025-03-20 9:19 ` Rolf Eike Beer
2025-03-21 2:11 ` Baolu Lu
0 siblings, 1 reply; 5+ messages in thread
From: Rolf Eike Beer @ 2025-03-20 9:19 UTC (permalink / raw)
To: Joerg Roedel, Will Deacon
Cc: iommu, linux-kernel, Robin Murphy, linux-arm-kernel
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
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH 5/6] iommu: make inclusion of arm/arm-smmu-v3 directory conditional
2025-03-20 9:19 ` [PATCH 5/6] iommu: make inclusion of arm/arm-smmu-v3 directory conditional Rolf Eike Beer
@ 2025-03-21 2:11 ` Baolu Lu
0 siblings, 0 replies; 5+ messages in thread
From: Baolu Lu @ 2025-03-21 2:11 UTC (permalink / raw)
To: Rolf Eike Beer, Joerg Roedel, Will Deacon
Cc: iommu, linux-kernel, Robin Murphy, linux-arm-kernel
On 3/20/25 17:19, Rolf Eike Beer wrote:
> 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>
Reviewed-by: Lu Baolu <baolu.lu@linux.intel.com>
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCHv3 0/6] make vendor specific subdirectory inclusion conditional
@ 2025-05-12 13:07 Rolf Eike Beer
2025-05-12 13:14 ` [PATCH 5/6] iommu: make inclusion of arm/arm-smmu-v3 directory conditional Rolf Eike Beer
2025-05-16 6:47 ` [PATCHv3 0/6] make vendor specific subdirectory inclusion conditional Joerg Roedel
0 siblings, 2 replies; 5+ messages in thread
From: Rolf Eike Beer @ 2025-05-12 13:07 UTC (permalink / raw)
To: Joerg Roedel, Will Deacon
Cc: iommu, linux-kernel, Bert Karwatzki, Lu Baolu, Jerry Snitselaar,
Suravee Suthikulpanit, Tomasz Jeznach, Nick Kossifidis,
Sebastien Boeuf, Palmer Dabbelt, Paul Walmsley, Albert Ou,
Alexandre Ghiti, Robin Murphy, linux-arm-kernel, Jason Gunthorpe,
Kevin Tian
[-- Attachment #1: Type: text/plain, Size: 1119 bytes --]
I found it strange that the vendor specific subdirectories were unconditionally
added. Everything in these directories obviously depends on the specific Kconfig
option. This series cleans this up by making the directory itself depend on
the respective option which looks more natural to me.
I must confess that I am too lazy to find a good solution for the "arm/"
directory, so I left it as is.
Regards,
Eike
---
Changes in v3:
- added Reviewed-by: Lu Baolu <baolu.lu@linux.intel.com>
- rebased on top of 2e9b2ee2ba403cbe270a8256b8794ef5ad19b38d
Changes in v2:
- clean up subdirectory Makefiles to use obj-y now
- add arm/arm-smmu-v3 and iommufd patches
--
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
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 313 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH 5/6] iommu: make inclusion of arm/arm-smmu-v3 directory conditional
2025-05-12 13:07 [PATCHv3 0/6] make vendor specific subdirectory inclusion conditional Rolf Eike Beer
@ 2025-05-12 13:14 ` Rolf Eike Beer
2025-05-16 6:47 ` [PATCHv3 0/6] make vendor specific subdirectory inclusion conditional Joerg Roedel
1 sibling, 0 replies; 5+ messages in thread
From: Rolf Eike Beer @ 2025-05-12 13:14 UTC (permalink / raw)
To: Joerg Roedel, Will Deacon; +Cc: iommu, Robin Murphy, linux-arm-kernel
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>
Reviewed-by: Lu Baolu <baolu.lu@linux.intel.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 0f9efeab709ff..35a7e13eef344 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 493a659cc66bb..6cc7c8557b9ea 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
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCHv3 0/6] make vendor specific subdirectory inclusion conditional
2025-05-12 13:07 [PATCHv3 0/6] make vendor specific subdirectory inclusion conditional Rolf Eike Beer
2025-05-12 13:14 ` [PATCH 5/6] iommu: make inclusion of arm/arm-smmu-v3 directory conditional Rolf Eike Beer
@ 2025-05-16 6:47 ` Joerg Roedel
1 sibling, 0 replies; 5+ messages in thread
From: Joerg Roedel @ 2025-05-16 6:47 UTC (permalink / raw)
To: Rolf Eike Beer
Cc: Will Deacon, iommu, linux-kernel, Bert Karwatzki, Lu Baolu,
Jerry Snitselaar, Suravee Suthikulpanit, Tomasz Jeznach,
Nick Kossifidis, Sebastien Boeuf, Palmer Dabbelt, Paul Walmsley,
Albert Ou, Alexandre Ghiti, Robin Murphy, linux-arm-kernel,
Jason Gunthorpe, Kevin Tian
On Mon, May 12, 2025 at 03:07:27PM +0200, Rolf Eike Beer wrote:
> I found it strange that the vendor specific subdirectories were unconditionally
> added. Everything in these directories obviously depends on the specific Kconfig
> option. This series cleans this up by making the directory itself depend on
> the respective option which looks more natural to me.
>
> I must confess that I am too lazy to find a good solution for the "arm/"
> directory, so I left it as is.
Applied, thanks.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2025-05-16 6:50 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-12 13:07 [PATCHv3 0/6] make vendor specific subdirectory inclusion conditional Rolf Eike Beer
2025-05-12 13:14 ` [PATCH 5/6] iommu: make inclusion of arm/arm-smmu-v3 directory conditional Rolf Eike Beer
2025-05-16 6:47 ` [PATCHv3 0/6] make vendor specific subdirectory inclusion conditional Joerg Roedel
[not found] <12652899.O9o76ZdvQC@devpool47.emlix.com>
2025-03-20 9:19 ` [PATCH 5/6] iommu: make inclusion of arm/arm-smmu-v3 directory conditional Rolf Eike Beer
2025-03-21 2:11 ` Baolu Lu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).