[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Z9vMwUQ679SdSwhG@8bytes.org>
Date: Thu, 20 Mar 2025 09:07:29 +0100
From: Joerg Roedel <joro@...tes.org>
To: Rolf Eike Beer <eb@...ix.com>
Cc: Will Deacon <will@...nel.org>, iommu@...ts.linux.dev,
linux-kernel@...r.kernel.org,
Tomasz Jeznach <tjeznach@...osinc.com>,
Nick Kossifidis <mick@....forth.gr>,
Sebastien Boeuf <seb@...osinc.com>,
Lu Baolu <baolu.lu@...ux.intel.com>,
Palmer Dabbelt <palmer@...osinc.com>,
Paul Walmsley <paul.walmsley@...ive.com>,
Albert Ou <aou@...s.berkeley.edu>, Alexandre Ghiti <alex@...ti.fr>
Subject: Re: [PATCH 4/4] iommu: make inclusion of riscv directory conditional
On Tue, Mar 11, 2025 at 11:15:12AM +0100, Rolf Eike Beer wrote:
> 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@...ix.com>
> ---
> drivers/iommu/Makefile | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/drivers/iommu/Makefile b/drivers/iommu/Makefile
> index 41b00cdc8621..17133876f777 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_API) += iommu-traces.o
> obj-$(CONFIG_IOMMU_API) += iommu-sysfs.o
This allows for some additional cleanups in the Makefiles of the
sub-directory, no? Same for the other patches in this series.
Regards,
Joerg
Powered by blists - more mailing lists