提交 ef8e08d2 编写于 作者: V Volodymyr Babchuk 提交者: Jens Wiklander

tee: shm: inline tee_shm_get_id()

Now, when struct tee_shm is defined in public header,
we can inline small getter functions like this one.
Signed-off-by: NVolodymyr Babchuk <vlad.babchuk@gmail.com>
Signed-off-by: NJens Wiklander <jens.wiklander@linaro.org>
上级 217e0250
...@@ -496,17 +496,6 @@ struct tee_shm *tee_shm_get_from_id(struct tee_context *ctx, int id) ...@@ -496,17 +496,6 @@ struct tee_shm *tee_shm_get_from_id(struct tee_context *ctx, int id)
} }
EXPORT_SYMBOL_GPL(tee_shm_get_from_id); EXPORT_SYMBOL_GPL(tee_shm_get_from_id);
/**
* tee_shm_get_id() - Get id of a shared memory object
* @shm: Shared memory handle
* @returns id
*/
int tee_shm_get_id(struct tee_shm *shm)
{
return shm->id;
}
EXPORT_SYMBOL_GPL(tee_shm_get_id);
/** /**
* tee_shm_put() - Decrease reference count on a shared memory handle * tee_shm_put() - Decrease reference count on a shared memory handle
* @shm: Shared memory handle * @shm: Shared memory handle
......
...@@ -438,7 +438,10 @@ static inline size_t tee_shm_get_page_offset(struct tee_shm *shm) ...@@ -438,7 +438,10 @@ static inline size_t tee_shm_get_page_offset(struct tee_shm *shm)
* @shm: Shared memory handle * @shm: Shared memory handle
* @returns id * @returns id
*/ */
int tee_shm_get_id(struct tee_shm *shm); static inline int tee_shm_get_id(struct tee_shm *shm)
{
return shm->id;
}
/** /**
* tee_shm_get_from_id() - Find shared memory object and increase reference * tee_shm_get_from_id() - Find shared memory object and increase reference
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册