summaryrefslogtreecommitdiff
path: root/include/linux/tee_drv.h
diff options
context:
space:
mode:
authorVolodymyr Babchuk <vlad.babchuk@gmail.com>2017-11-29 15:48:38 +0300
committerJens Wiklander <jens.wiklander@linaro.org>2017-12-15 15:36:21 +0300
commitef8e08d24ca84846ce639b835ebd2f15a943f42b (patch)
treeca4c1c312a2a490c3299ff22f6e30f5a2fdec8fa /include/linux/tee_drv.h
parent217e0250cccb9e54d457991446cd3fab413085e1 (diff)
downloadlinux-ef8e08d24ca84846ce639b835ebd2f15a943f42b.tar.xz
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: Volodymyr Babchuk <vlad.babchuk@gmail.com> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
Diffstat (limited to 'include/linux/tee_drv.h')
-rw-r--r--include/linux/tee_drv.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/linux/tee_drv.h b/include/linux/tee_drv.h
index 157e8d06bf49..a1d7f467657c 100644
--- a/include/linux/tee_drv.h
+++ b/include/linux/tee_drv.h
@@ -438,7 +438,10 @@ static inline size_t tee_shm_get_page_offset(struct tee_shm *shm)
* @shm: Shared memory handle
* @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