From: Colin Ian King Date: Fri, 22 Dec 2017 17:01:22 +0000 (+0000) Subject: tee: shm: make function __tee_shm_alloc static X-Git-Tag: v4.16-rc1~98^2~9^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=80ec6f5de60b6934f145b2f7e5369592bcab85f3;p=thirdparty%2Fkernel%2Flinux.git 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 Signed-off-by: Jens Wiklander --- diff --git a/drivers/tee/tee_shm.c b/drivers/tee/tee_shm.c index 6a17b02ada5ed..511eb298949b5 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 = { .mmap = tee_shm_op_mmap, }; -struct tee_shm *__tee_shm_alloc(struct tee_context *ctx, - struct tee_device *teedev, - size_t size, u32 flags) +static struct tee_shm *__tee_shm_alloc(struct tee_context *ctx, + struct tee_device *teedev, + size_t size, u32 flags) { struct tee_shm_pool_mgr *poolm = NULL; struct tee_shm *shm;