@@ -44,7 +44,7 @@ struct tee_shm *tee_shm_alloc_from_rpc(struct tee *tee, size_t size)
4444 INMSG ();
4545
4646 mutex_lock (& tee -> lock );
47- shm = tee_shm_alloc (tee , size , TEE_SHM_TEMP | TEE_SHM_FROM_RPC );
47+ shm = rk_tee_shm_alloc (tee , size , TEE_SHM_TEMP | TEE_SHM_FROM_RPC );
4848 if (IS_ERR_OR_NULL (shm )) {
4949 dev_err (_DEV (tee ), "%s: buffer allocation failed (%ld)\n" ,
5050 __func__ , PTR_ERR (shm ));
@@ -75,11 +75,11 @@ void tee_shm_free_from_rpc(struct tee_shm *shm)
7575 list_del (& shm -> entry );
7676 }
7777
78- tee_shm_free (shm );
78+ rk_tee_shm_free (shm );
7979 mutex_unlock (& tee -> lock );
8080}
8181
82- struct tee_shm * tee_shm_alloc (struct tee * tee , size_t size , uint32_t flags )
82+ struct tee_shm * rk_tee_shm_alloc (struct tee * tee , size_t size , uint32_t flags )
8383{
8484 struct tee_shm * shm ;
8585 unsigned long pfn ;
@@ -128,7 +128,7 @@ struct tee_shm *tee_shm_alloc(struct tee *tee, size_t size, uint32_t flags)
128128 return shm ;
129129}
130130
131- void tee_shm_free (struct tee_shm * shm )
131+ void rk_tee_shm_free (struct tee_shm * shm )
132132{
133133 struct tee * tee ;
134134
@@ -402,7 +402,7 @@ int tee_shm_alloc_io(struct tee_context *ctx, struct tee_shm_io *shm_io)
402402 shm_io -> fd_shm = 0 ;
403403
404404 mutex_lock (& tee -> lock );
405- shm = tee_shm_alloc (tee , shm_io -> size , shm_io -> flags );
405+ shm = rk_tee_shm_alloc (tee , shm_io -> size , shm_io -> flags );
406406 if (IS_ERR_OR_NULL (shm )) {
407407 dev_err (_DEV (tee ), "%s: buffer allocation failed (%ld)\n" ,
408408 __func__ , PTR_ERR (shm ));
@@ -413,7 +413,7 @@ int tee_shm_alloc_io(struct tee_context *ctx, struct tee_shm_io *shm_io)
413413 if (ctx -> usr_client ) {
414414 ret = export_buf (tee , shm , & shm_io -> fd_shm );
415415 if (ret ) {
416- tee_shm_free (shm );
416+ rk_tee_shm_free (shm );
417417 ret = - ENOMEM ;
418418 goto out ;
419419 }
@@ -445,7 +445,7 @@ void tee_shm_free_io(struct tee_shm *shm)
445445 tee_dec_stats (& tee -> stats [TEE_STATS_SHM_IDX ]);
446446 list_del (& shm -> entry );
447447
448- tee_shm_free (shm );
448+ rk_tee_shm_free (shm );
449449 tee_put (ctx -> tee );
450450 tee_context_put (ctx );
451451 if (dev )
@@ -787,7 +787,7 @@ struct tee_shm *tee_shm_get(struct tee_context *ctx, TEEC_SharedMemory *c_shm,
787787 return ERR_PTR (ret );
788788}
789789
790- void tee_shm_put (struct tee_context * ctx , struct tee_shm * shm )
790+ void rk_tee_shm_put (struct tee_context * ctx , struct tee_shm * shm )
791791{
792792 struct tee * tee = ctx -> tee ;
793793
0 commit comments