Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1665652
| From | Jerome Forissier <jerome.forissier@linaro.org> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] tee: add forward declaration for struct device |
| Date | 2017-06-14 11:50 +0200 |
| Message-ID | <tSd62-3uV-15@gated-at.bofh.it> (permalink) |
| References | <tN9Z8-45a-13@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
[+Arnd] Ping? Thanks, -- Jerome On 05/31/2017 01:21 PM, Jerome Forissier wrote: > 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> > --- > include/linux/tee_drv.h | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/include/linux/tee_drv.h b/include/linux/tee_drv.h > index 8614713..07bd226 100644 > --- a/include/linux/tee_drv.h > +++ b/include/linux/tee_drv.h > @@ -29,6 +29,7 @@ > #define TEE_SHM_DMA_BUF BIT(1) /* Memory with dma-buf handle */ > #define TEE_SHM_EXT_DMA_BUF BIT(2) /* Memory with dma-buf handle */ > > +struct device; > struct tee_device; > struct tee_shm; > struct tee_shm_pool; >
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
Re: [PATCH] tee: add forward declaration for struct device Jerome Forissier <jerome.forissier@linaro.org> - 2017-06-14 11:50 +0200
csiph-web