summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorJerome Forissier <jerome.forissier@linaro.org>2017-05-31 13:21:05 +0200
committerVictor Chong <victor.chong@linaro.org>2018-01-12 16:44:44 +0000
commit185c2d72a1f6d8ba8e6ecff89582a274cb815253 (patch)
treef3e4d44609836de100011b52b22b80773d0ae0c2 /include/linux
parent62275d495b420f40bbc8c33bed80a9647c07bc86 (diff)
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: Jerome Forissier <jerome.forissier@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org> (cherry picked from commit 999616b8536cf3b9a1d0d74d5542ea009df482ff) Signed-off-by: Victor Chong <victor.chong@linaro.org>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/tee_drv.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/tee_drv.h b/include/linux/tee_drv.h
index 0f175b8f6456..cb889afe576b 100644
--- a/include/linux/tee_drv.h
+++ b/include/linux/tee_drv.h
@@ -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;