tee: optee: Move pool_op helper functions
authorBalint Dobszay <balint.dobszay@arm.com>
Mon, 25 Mar 2024 15:11:02 +0000 (16:11 +0100)
committerJens Wiklander <jens.wiklander@linaro.org>
Wed, 3 Apr 2024 11:58:20 +0000 (13:58 +0200)
commitcf4441503e20a0c0a36e0a98dcf57de3d3844c91
tree4152ef166cc65f39009968dd963e50ef7c780628
parent0439fcff304acdedfc493dbf900dce86922fd31f
tee: optee: Move pool_op helper functions

Move the pool alloc and free helper functions from the OP-TEE driver to
the TEE subsystem, since these could be reused in other TEE drivers.
This patch is not supposed to change behavior, it's only reorganizing
the code.

Reviewed-by: Sumit Garg <sumit.garg@linaro.org>
Suggested-by: Jens Wiklander <jens.wiklander@linaro.org>
Signed-off-by: Balint Dobszay <balint.dobszay@arm.com>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
drivers/tee/optee/core.c
drivers/tee/optee/ffa_abi.c
drivers/tee/optee/optee_private.h
drivers/tee/optee/smc_abi.c
drivers/tee/tee_shm.c
include/linux/tee_core.h