Skip to content

Commit 53f0b02

Browse files
jpemartinsjgunthorpe
authored andcommitted
vfio/iova_bitmap: Export more API symbols
In preparation to move iova_bitmap into iommufd, export the rest of API symbols that will be used in what could be used by modules, namely: iova_bitmap_alloc iova_bitmap_free iova_bitmap_for_each Link: https://lore.kernel.org/r/20231024135109.73787-2-joao.m.martins@oracle.com Suggested-by: Alex Williamson <alex.williamson@redhat.com> Signed-off-by: Joao Martins <joao.m.martins@oracle.com> Reviewed-by: Jason Gunthorpe <jgg@nvidia.com> Reviewed-by: Kevin Tian <kevin.tian@intel.com> Reviewed-by: Alex Williamson <alex.williamson@redhat.com> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
1 parent b5f9e63 commit 53f0b02

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

drivers/vfio/iova_bitmap.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,7 @@ struct iova_bitmap *iova_bitmap_alloc(unsigned long iova, size_t length,
268268
iova_bitmap_free(bitmap);
269269
return ERR_PTR(rc);
270270
}
271+
EXPORT_SYMBOL_GPL(iova_bitmap_alloc);
271272

272273
/**
273274
* iova_bitmap_free() - Frees an IOVA bitmap object
@@ -289,6 +290,7 @@ void iova_bitmap_free(struct iova_bitmap *bitmap)
289290

290291
kfree(bitmap);
291292
}
293+
EXPORT_SYMBOL_GPL(iova_bitmap_free);
292294

293295
/*
294296
* Returns the remaining bitmap indexes from mapped_total_index to process for
@@ -387,6 +389,7 @@ int iova_bitmap_for_each(struct iova_bitmap *bitmap, void *opaque,
387389

388390
return ret;
389391
}
392+
EXPORT_SYMBOL_GPL(iova_bitmap_for_each);
390393

391394
/**
392395
* iova_bitmap_set() - Records an IOVA range in bitmap

0 commit comments

Comments
 (0)