diff options
author | Jens Wiklander <jens.wiklander@linaro.org> | 2022-02-04 12:33:55 +0300 |
---|---|---|
committer | Jens Wiklander <jens.wiklander@linaro.org> | 2022-02-16 09:49:41 +0300 |
commit | 924e32269228a4e2575e50e6fd6ed83cb57aa52a (patch) | |
tree | d34f9fa198c09c11dad0c74fb4b9e3e264e94dc9 /drivers/tee/optee/optee_private.h | |
parent | 5d41f1b3e3282909b6bbceacb9aebe1d3c849a49 (diff) | |
download | linux-924e32269228a4e2575e50e6fd6ed83cb57aa52a.tar.xz |
optee: add optee_pool_op_free_helper()
Adds a common helper function to free a tee_shm allocated using the
helper function optee_pool_op_alloc_helper().
Reviewed-by: Sumit Garg <sumit.garg@linaro.org>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
Diffstat (limited to 'drivers/tee/optee/optee_private.h')
-rw-r--r-- | drivers/tee/optee/optee_private.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/tee/optee/optee_private.h b/drivers/tee/optee/optee_private.h index df3a483bbf46..e77765c78878 100644 --- a/drivers/tee/optee/optee_private.h +++ b/drivers/tee/optee/optee_private.h @@ -236,6 +236,9 @@ int optee_pool_op_alloc_helper(struct tee_shm_pool *pool, struct tee_shm *shm, struct page **pages, size_t num_pages, unsigned long start)); +void optee_pool_op_free_helper(struct tee_shm_pool *pool, struct tee_shm *shm, + int (*shm_unregister)(struct tee_context *ctx, + struct tee_shm *shm)); void optee_remove_common(struct optee *optee); |