aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/tee_drv.h
diff options
context:
space:
mode:
authorJerome Forissier <jerome.forissier@linaro.org>2017-05-31 13:21:05 +0200
committerJens Wiklander <jens.wiklander@linaro.org>2017-08-04 10:30:27 +0200
commit999616b8536cf3b9a1d0d74d5542ea009df482ff (patch)
treef8471b2fb028852be5a3a2c403af97ffc4406441 /include/linux/tee_drv.h
parenttee: optee: fix uninitialized symbol 'parg' (diff)
downloadlinux-dev-999616b8536cf3b9a1d0d74d5542ea009df482ff.tar.xz
linux-dev-999616b8536cf3b9a1d0d74d5542ea009df482ff.zip
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. Signed-off-by: Jerome Forissier <jerome.forissier@linaro.org> Signed-off-by: Jens Wiklander <jens.wiklander@linaro.org>
Diffstat (limited to 'include/linux/tee_drv.h')
-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;