Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6e76ed56 authored by Colin Ian King's avatar Colin Ian King Committed by Victor Chong
Browse files

BACKPORT: 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?

Change-Id: I6bbd0f64c3a334f63ec6a834f43c3bc5830d7335
Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarJens Wiklander <jens.wiklander@linaro.org>
(cherry picked from commit 80ec6f5de60b6934f145b2f7e5369592bcab85f3)
Signed-off-by: default avatarVictor Chong <victor.chong@linaro.org>
parent 61d36598
Loading
Loading
Loading
Loading
+3 −3
Original line number Original line Diff line number Diff line
@@ -112,7 +112,7 @@ static const struct dma_buf_ops tee_shm_dma_buf_ops = {
	.mmap = tee_shm_op_mmap,
	.mmap = tee_shm_op_mmap,
};
};


struct tee_shm *__tee_shm_alloc(struct tee_context *ctx,
static struct tee_shm *__tee_shm_alloc(struct tee_context *ctx,
				       struct tee_device *teedev,
				       struct tee_device *teedev,
				       size_t size, u32 flags)
				       size_t size, u32 flags)
{
{