Skip to content

Commit

Permalink
tee: support of allocating DMA shared buffers **not for mainline**
Browse files Browse the repository at this point in the history
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: 0c23453 ("tee: support of allocating DMA shared buffers **not for
mainline**")
Signed-off-by: Igor Opaniuk <igor.opaniuk@linaro.org>
  • Loading branch information
Igor Opaniuk authored and jforissier committed Jun 19, 2018
1 parent 0c23453 commit ece5ba2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/tee/optee/rpc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit ece5ba2

Please sign in to comment.