diff options
author | Colin Ian King <colin.king@canonical.com> | 2017-12-22 12:01:22 -0500 |
---|---|---|
committer | Jens Wiklander <jens.wiklander@linaro.org> | 2017-12-28 16:19:57 -0500 |
commit | 80ec6f5de60b6934f145b2f7e5369592bcab85f3 (patch) | |
tree | 2fa7e7a215b43bc15da527326716ca1f7b06cc9a | |
parent | cdbcf83d29c1bf2aaa65260e74beaac1bcdc231c (diff) |
tee: shm: make function __tee_shm_alloc static
The function __tee_shm_alloc is local to the source and does
not need to be in global scope, so make it static.
Cleans up sparse warning:
symbol '__tee_shm_alloc' was not declared. Should it be static?
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
-rw-r--r-- | drivers/tee/tee_shm.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/tee/tee_shm.c b/drivers/tee/tee_shm.c index 6a17b02ada5e..511eb298949b 100644 --- a/drivers/tee/tee_shm.c +++ b/drivers/tee/tee_shm.c | |||
@@ -112,9 +112,9 @@ static const struct dma_buf_ops tee_shm_dma_buf_ops = { | |||
112 | .mmap = tee_shm_op_mmap, | 112 | .mmap = tee_shm_op_mmap, |
113 | }; | 113 | }; |
114 | 114 | ||
115 | struct tee_shm *__tee_shm_alloc(struct tee_context *ctx, | 115 | static struct tee_shm *__tee_shm_alloc(struct tee_context *ctx, |
116 | struct tee_device *teedev, | 116 | struct tee_device *teedev, |
117 | size_t size, u32 flags) | 117 | size_t size, u32 flags) |
118 | { | 118 | { |
119 | struct tee_shm_pool_mgr *poolm = NULL; | 119 | struct tee_shm_pool_mgr *poolm = NULL; |
120 | struct tee_shm *shm; | 120 | struct tee_shm *shm; |