From: Jerome Forissier Date: Wed, 31 May 2017 11:21:05 +0000 (+0200) Subject: tee: add forward declaration for struct device X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=999616b8536cf3b9a1d0d74d5542ea009df482ff;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Jens Wiklander --- 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;