Re: [PATCH rdma-next] RDMA/mad: Delete duplicated init_query_mad functions

From: Jason Gunthorpe
Date: Wed Jan 05 2022 - 14:49:52 EST


On Wed, Jan 05, 2022 at 10:04:56AM +0200, Leon Romanovsky wrote:
> From: Leon Romanovsky <leonro@xxxxxxxxxx>
>
> Several drivers used same function to initialize query MAD,
> so move that function to global header file.
>
> Signed-off-by: Leon Romanovsky <leonro@xxxxxxxxxx>
> Reviewed-by: Håkon Bugge <haakon.bugge@xxxxxxxxxx>
> ---
> drivers/infiniband/hw/mlx4/main.c | 24 +++++++-------------
> drivers/infiniband/hw/mlx5/mad.c | 18 +++++++--------
> drivers/infiniband/hw/mlx5/mlx5_ib.h | 8 -------
> drivers/infiniband/hw/mthca/mthca_provider.c | 20 +++++-----------
> include/rdma/ib_smi.h | 12 +++++++++-
> 5 files changed, 34 insertions(+), 48 deletions(-)

Applied to for-next, thanks

Jason