]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commitdiff
IB/uverbs: Export uverbs idr and fd types
authorMatan Barak <matanb@mellanox.com>
Sun, 17 Jun 2018 09:59:50 +0000 (12:59 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 19 Jun 2018 16:53:02 +0000 (10:53 -0600)
As provider drivers could use UVERBS_ATTR_FD and UVERBS_ATTR_IDR macros
need to export them.

Signed-off-by: Matan Barak <matanb@mellanox.com>
Signed-off-by: Yishai Hadas <yishaih@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/rdma_core.c

index a6e904973ba8a08973340b66f608eadfa04e2893..8035a0a7564cd9378960446772c3da02b13e78b4 100644 (file)
@@ -611,6 +611,7 @@ const struct uverbs_obj_type_class uverbs_idr_class = {
         */
        .needs_kfree_rcu = true,
 };
+EXPORT_SYMBOL(uverbs_idr_class);
 
 static void _uverbs_close_fd(struct ib_uobject_file *uobj_file)
 {
@@ -719,6 +720,7 @@ const struct uverbs_obj_type_class uverbs_fd_class = {
        .remove_commit = remove_commit_fd_uobject,
        .needs_kfree_rcu = false,
 };
+EXPORT_SYMBOL(uverbs_fd_class);
 
 struct ib_uobject *uverbs_get_uobject_from_context(const struct uverbs_obj_type *type_attrs,
                                                   struct ib_ucontext *ucontext,