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

Commit 185c2d72 authored by Jerome Forissier's avatar Jerome Forissier Committed by Victor Chong
Browse files

BACKPORT: tee: add forward declaration for struct device



tee_drv.h references struct device, but does not include device.h nor
platform_device.h. Therefore, if tee_drv.h is included by some file
that does not pull device.h nor platform_device.h beforehand, we have a
compile warning. Fix this by adding a forward declaration.

Change-Id: Iadb9563a540c95064774c577f679e0d630b939c8
Signed-off-by: default avatarJerome Forissier <jerome.forissier@linaro.org>
Signed-off-by: default avatarJens Wiklander <jens.wiklander@linaro.org>
(cherry picked from commit 999616b8536cf3b9a1d0d74d5542ea009df482ff)
Signed-off-by: default avatarVictor Chong <victor.chong@linaro.org>
parent 62275d49
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -28,6 +28,7 @@
#define TEE_SHM_MAPPED		0x1	/* Memory mapped by the kernel */
#define TEE_SHM_DMA_BUF		0x2	/* Memory with dma-buf handle */

struct device;
struct tee_device;
struct tee_shm;
struct tee_shm_pool;