Commit 53f0b020 authored by Joao Martins's avatar Joao Martins Committed by Jason Gunthorpe

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.comSuggested-by: default avatarAlex Williamson <alex.williamson@redhat.com>
Signed-off-by: default avatarJoao Martins <joao.m.martins@oracle.com>
Reviewed-by: default avatarJason Gunthorpe <jgg@nvidia.com>
Reviewed-by: default avatarKevin Tian <kevin.tian@intel.com>
Reviewed-by: default avatarAlex Williamson <alex.williamson@redhat.com>
Signed-off-by: default avatarJason Gunthorpe <jgg@nvidia.com>
parent b5f9e632
...@@ -268,6 +268,7 @@ struct iova_bitmap *iova_bitmap_alloc(unsigned long iova, size_t length, ...@@ -268,6 +268,7 @@ struct iova_bitmap *iova_bitmap_alloc(unsigned long iova, size_t length,
iova_bitmap_free(bitmap); iova_bitmap_free(bitmap);
return ERR_PTR(rc); return ERR_PTR(rc);
} }
EXPORT_SYMBOL_GPL(iova_bitmap_alloc);
/** /**
* iova_bitmap_free() - Frees an IOVA bitmap object * iova_bitmap_free() - Frees an IOVA bitmap object
...@@ -289,6 +290,7 @@ void iova_bitmap_free(struct iova_bitmap *bitmap) ...@@ -289,6 +290,7 @@ void iova_bitmap_free(struct iova_bitmap *bitmap)
kfree(bitmap); kfree(bitmap);
} }
EXPORT_SYMBOL_GPL(iova_bitmap_free);
/* /*
* Returns the remaining bitmap indexes from mapped_total_index to process for * 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, ...@@ -387,6 +389,7 @@ int iova_bitmap_for_each(struct iova_bitmap *bitmap, void *opaque,
return ret; return ret;
} }
EXPORT_SYMBOL_GPL(iova_bitmap_for_each);
/** /**
* iova_bitmap_set() - Records an IOVA range in bitmap * iova_bitmap_set() - Records an IOVA range in bitmap
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment