On Tue, Apr 04, 2023 at 12:01:35PM -0700, Brett Creeley wrote: > Currently only Mellanox uses the combine_ranges function. The > new pds_vfio driver also needs this function. So, move it to > a common location for other vendor drivers to use. > > Also, Simon Horman noticed that RCT ordering was not followed > for vfio_combin_iova_ranges(), so fix that. > > Cc: Yishai Hadas <yishaih@xxxxxxxxxx> > Signed-off-by: Brett Creeley <brett.creeley@xxxxxxx> > Signed-off-by: Shannon Nelson <shannon.nelson@xxxxxxx> > Reviewed-by: Simon Horman <simon.horman@xxxxxxxxxxxx> > --- > drivers/vfio/pci/mlx5/cmd.c | 48 +------------------------------------ > drivers/vfio/vfio_main.c | 47 ++++++++++++++++++++++++++++++++++++ > include/linux/vfio.h | 3 +++ > 3 files changed, 51 insertions(+), 47 deletions(-) Reviewed-by: Jason Gunthorpe <jgg@xxxxxxxxxx> Jason