From ece5ba232a4e2708e267dfcc7f37af0df94281d7 Mon Sep 17 00:00:00 2001 From: Igor Opaniuk Date: Tue, 19 Jun 2018 15:26:21 +0300 Subject: [PATCH] tee: support of allocating DMA shared buffers **not for mainline** Fix compilation issue: drivers/tee/optee/rpc.c: In function 'handle_rpc_func_cmd_shm_alloc': drivers/tee/optee/rpc.c:236:7: error: 'OPTEE_MSG_RPC_SHM_TYPE_KERNEL_GLOBAL' undeclared (first use in this function) case OPTEE_MSG_RPC_SHM_TYPE_KERNEL_GLOBAL: Fixes: 0c23453b3dcc ("tee: support of allocating DMA shared buffers **not for mainline**") Signed-off-by: Igor Opaniuk --- drivers/tee/optee/rpc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tee/optee/rpc.c b/drivers/tee/optee/rpc.c index 12850016a36149..6de3fe7456a5bf 100644 --- a/drivers/tee/optee/rpc.c +++ b/drivers/tee/optee/rpc.c @@ -233,7 +233,7 @@ static void handle_rpc_func_cmd_shm_alloc(struct tee_context *ctx, case OPTEE_MSG_RPC_SHM_TYPE_KERNEL: shm = tee_shm_alloc(ctx, sz, TEE_SHM_MAPPED); break; - case OPTEE_MSG_RPC_SHM_TYPE_KERNEL_GLOBAL: + case OPTEE_MSG_RPC_SHM_TYPE_GLOBAL: shm = tee_shm_alloc(ctx, sz, TEE_SHM_MAPPED | TEE_SHM_DMA_BUF); break; default: