Skip to content

Commit ece5ba2

Browse files
Igor Opaniukjforissier
Igor Opaniuk
authored andcommitted
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: 0c23453 ("tee: support of allocating DMA shared buffers **not for mainline**") Signed-off-by: Igor Opaniuk <[email protected]>
1 parent 0c23453 commit ece5ba2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/tee/optee/rpc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ static void handle_rpc_func_cmd_shm_alloc(struct tee_context *ctx,
233233
case OPTEE_MSG_RPC_SHM_TYPE_KERNEL:
234234
shm = tee_shm_alloc(ctx, sz, TEE_SHM_MAPPED);
235235
break;
236-
case OPTEE_MSG_RPC_SHM_TYPE_KERNEL_GLOBAL:
236+
case OPTEE_MSG_RPC_SHM_TYPE_GLOBAL:
237237
shm = tee_shm_alloc(ctx, sz, TEE_SHM_MAPPED | TEE_SHM_DMA_BUF);
238238
break;
239239
default:

0 commit comments

Comments
 (0)