Message ID | 20231018202715.69734-2-joao.m.martins@oracle.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | IOMMUFD Dirty Tracking | expand |
On Wed, Oct 18, 2023 at 09:26:58PM +0100, Joao Martins wrote: > 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 > > Suggested-by: Alex Williamson <alex.williamson@redhat.com> > Signed-off-by: Joao Martins <joao.m.martins@oracle.com> > --- > drivers/vfio/iova_bitmap.c | 3 +++ > 1 file changed, 3 insertions(+) Reviewed-by: Jason Gunthorpe <jgg@nvidia.com> Jason
> From: Joao Martins <joao.m.martins@oracle.com> > Sent: Thursday, October 19, 2023 4:27 AM > > 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 > > Suggested-by: Alex Williamson <alex.williamson@redhat.com> > Signed-off-by: Joao Martins <joao.m.martins@oracle.com> Reviewed-by: Kevin Tian <kevin.tian@intel.com>
On Wed, 18 Oct 2023 21:26:58 +0100 Joao Martins <joao.m.martins@oracle.com> wrote: > 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 > > Suggested-by: Alex Williamson <alex.williamson@redhat.com> > Signed-off-by: Joao Martins <joao.m.martins@oracle.com> > --- > drivers/vfio/iova_bitmap.c | 3 +++ > 1 file changed, 3 insertions(+) Reviewed-by: Alex Williamson <alex.williamson@redhat.com> > > diff --git a/drivers/vfio/iova_bitmap.c b/drivers/vfio/iova_bitmap.c > index 0848f920efb7..f54b56388e00 100644 > --- a/drivers/vfio/iova_bitmap.c > +++ b/drivers/vfio/iova_bitmap.c > @@ -268,6 +268,7 @@ struct iova_bitmap *iova_bitmap_alloc(unsigned long iova, size_t length, > iova_bitmap_free(bitmap); > return ERR_PTR(rc); > } > +EXPORT_SYMBOL_GPL(iova_bitmap_alloc); > > /** > * iova_bitmap_free() - Frees an IOVA bitmap object > @@ -289,6 +290,7 @@ void iova_bitmap_free(struct iova_bitmap *bitmap) > > kfree(bitmap); > } > +EXPORT_SYMBOL_GPL(iova_bitmap_free); > > /* > * 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, > > return ret; > } > +EXPORT_SYMBOL_GPL(iova_bitmap_for_each); > > /** > * iova_bitmap_set() - Records an IOVA range in bitmap
diff --git a/drivers/vfio/iova_bitmap.c b/drivers/vfio/iova_bitmap.c index 0848f920efb7..f54b56388e00 100644 --- a/drivers/vfio/iova_bitmap.c +++ b/drivers/vfio/iova_bitmap.c @@ -268,6 +268,7 @@ struct iova_bitmap *iova_bitmap_alloc(unsigned long iova, size_t length, iova_bitmap_free(bitmap); return ERR_PTR(rc); } +EXPORT_SYMBOL_GPL(iova_bitmap_alloc); /** * iova_bitmap_free() - Frees an IOVA bitmap object @@ -289,6 +290,7 @@ void iova_bitmap_free(struct iova_bitmap *bitmap) kfree(bitmap); } +EXPORT_SYMBOL_GPL(iova_bitmap_free); /* * 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, return ret; } +EXPORT_SYMBOL_GPL(iova_bitmap_for_each); /** * iova_bitmap_set() - Records an IOVA range in bitmap
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 Suggested-by: Alex Williamson <alex.williamson@redhat.com> Signed-off-by: Joao Martins <joao.m.martins@oracle.com> --- drivers/vfio/iova_bitmap.c | 3 +++ 1 file changed, 3 insertions(+)