iris: Make iris_bo_export_gem_handle() static
authorJosé Roberto de Souza <jose.souza@intel.com>
Wed, 30 Nov 2022 20:25:26 +0000 (12:25 -0800)
committerMarge Bot <emma+marge@anholt.net>
Fri, 23 Dec 2022 18:22:29 +0000 (18:22 +0000)
It is only used in iris_bufmgr.c so no neeed to export it.

Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20423>

src/gallium/drivers/iris/iris_bufmgr.c
src/gallium/drivers/iris/iris_bufmgr.h

index 397b1d6..273c883 100644 (file)
@@ -2019,7 +2019,7 @@ iris_bo_export_dmabuf(struct iris_bo *bo, int *prime_fd)
    return 0;
 }
 
-uint32_t
+static uint32_t
 iris_bo_export_gem_handle(struct iris_bo *bo)
 {
    /* We cannot export suballocated BOs. */
index 8f586ce..9f891de 100644 (file)
@@ -525,8 +525,6 @@ struct iris_bo *iris_bo_import_dmabuf(struct iris_bufmgr *bufmgr, int prime_fd);
 int iris_bo_export_gem_handle_for_device(struct iris_bo *bo, int drm_fd,
                                          uint32_t *out_handle);
 
-uint32_t iris_bo_export_gem_handle(struct iris_bo *bo);
-
 /**
  * Returns the BO's address relative to the appropriate base address.
  *