Re: [PATCH] RDMA/usnic: Refactor usnic_uiom_alloc_pd()

From: Jason Gunthorpe
Date: Fri Apr 08 2022 - 13:23:17 EST


On Tue, Apr 05, 2022 at 03:35:59PM +0100, Robin Murphy wrote:
> Rather than hard-coding pci_bus_type, pass the PF device through to
> usnic_uiom_alloc_pd() and retrieve its bus there. This prepares for
> iommu_domain_alloc() changing to take a device rather than a bus_type.
>
> Signed-off-by: Robin Murphy <robin.murphy@xxxxxxx>
> Reported-by: kernel test robot <lkp@xxxxxxxxx>
> ---
> drivers/infiniband/hw/usnic/usnic_ib_verbs.c | 3 +--
> drivers/infiniband/hw/usnic/usnic_uiom.c | 5 ++---
> drivers/infiniband/hw/usnic/usnic_uiom.h | 2 +-
> 3 files changed, 4 insertions(+), 6 deletions(-)

Applied to for-next, thanks

Jason