[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <badfd899-aab1-9f47-9053-e05c6bedd668@linux.intel.com>
Date: Fri, 30 Sep 2022 16:04:41 +0800
From: Baolu Lu <baolu.lu@...ux.intel.com>
To: Yu Zhang <yu.c.zhang@...ux.intel.com>, joro@...tes.org,
will@...nel.org, robin.murphy@....com
Cc: baolu.lu@...ux.intel.com, iommu@...ts.linux.dev,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] iommu: remove useless parameter in iommu_bus_init().
On 2022/9/30 15:02, Yu Zhang wrote:
> Parameter 'ops' is no longer used by iommu_bus_init(), after
> commit 8cec63e52966 ("iommu: Remove iommu_callback_data").
>
> So just remove it.
>
> Signed-off-by: Yu Zhang <yu.c.zhang@...ux.intel.com>
> ---
> drivers/iommu/iommu.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/iommu/iommu.c b/drivers/iommu/iommu.c
> index 3a808146b50f..bedda1e0f016 100644
> --- a/drivers/iommu/iommu.c
> +++ b/drivers/iommu/iommu.c
> @@ -1775,7 +1775,7 @@ int bus_iommu_probe(struct bus_type *bus)
> return ret;
> }
>
> -static int iommu_bus_init(struct bus_type *bus, const struct iommu_ops *ops)
> +static int iommu_bus_init(struct bus_type *bus)
> {
> struct notifier_block *nb;
> int err;
> @@ -1836,7 +1836,7 @@ int bus_set_iommu(struct bus_type *bus, const struct iommu_ops *ops)
> bus->iommu_ops = ops;
>
> /* Do IOMMU specific setup for this bus-type */
> - err = iommu_bus_init(bus, ops);
> + err = iommu_bus_init(bus);
> if (err)
> bus->iommu_ops = NULL;
>
bus_set_iommu() has been retired. All patches are just queued in
linux-next and will show up in v6.1-rc1.
Best regards,
baolu
Powered by blists - more mailing lists