linux/drivers/media/platform/omap3isp
Mauro Carvalho Chehab 99ed3dd83f media: isppreview: fix __user annotations
The 'from' variable at preview_config() expects an __user * type.

However, the logic there does:

    from = *(void * __user *) ((void *)cfg + attr->config_offset);

With actually means a void pointer, pointing to a void __ user
pointer. When the first pointer is de-referenced with *(foo),
the type it returns is "void *" instead of "void __user *".

Change it to:
    from = *(void __user **) ((void *)cfg + attr->config_offset);

in order to obtain, when de-referenced, a void __user pointer,
as desired.

That prevent those warnings:
   drivers/media/platform/omap3isp/isppreview.c:893:45: warning: incorrect type in initializer (different address spaces)
   drivers/media/platform/omap3isp/isppreview.c:893:45:    expected void [noderef] <asn:1>*from
   drivers/media/platform/omap3isp/isppreview.c:893:45:    got void *[noderef] <asn:1><noident>
   drivers/media/platform/omap3isp/isppreview.c:893:47: warning: dereference of noderef expression

Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2018-04-17 05:31:13 -04:00
..
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
cfa_coef_table.h [media] omap3isp: Remove boilerplate disclaimer and FSF address 2014-08-21 15:25:12 -05:00
gamma_table.h [media] omap3isp: Remove boilerplate disclaimer and FSF address 2014-08-21 15:25:12 -05:00
isp.c media: omap3isp/isp: remove an unused static var 2018-04-17 04:55:41 -04:00
isp.h media: omap3isp: Use generic parser for parsing fwnode endpoints 2017-10-31 13:48:44 -04:00
ispccdc.c media: omap3isp: Quit using struct v4l2_subdev.host_priv field 2017-08-20 08:18:38 -04:00
ispccdc.h [media] omap3isp: remove per ISP module link creation functions 2016-01-11 12:19:07 -02:00
ispccp2.c media: omap3isp: Quit using struct v4l2_subdev.host_priv field 2017-08-20 08:18:38 -04:00
ispccp2.h [media] omap3isp: remove per ISP module link creation functions 2016-01-11 12:19:07 -02:00
ispcsi2.c media: omap3isp: Quit using struct v4l2_subdev.host_priv field 2017-08-20 08:18:38 -04:00
ispcsi2.h [media] omap3isp: remove per ISP module link creation functions 2016-01-11 12:19:07 -02:00
ispcsiphy.c media: omap3isp: Quit using struct v4l2_subdev.host_priv field 2017-08-20 08:18:38 -04:00
ispcsiphy.h media: omap3isp: csiphy: Don't assume the CSI receiver is a CSI2 module 2017-08-20 08:17:38 -04:00
isph3a.h [media] omap3isp: Remove boilerplate disclaimer and FSF address 2014-08-21 15:25:12 -05:00
isph3a_aewb.c [media] omap3isp: don't break long lines 2016-10-21 09:34:16 -02:00
isph3a_af.c [media] omap3isp: don't break long lines 2016-10-21 09:34:16 -02:00
isphist.c [media] v4l: omap3isp: Use dma_request_chan_by_mask() to request the DMA channel 2016-11-16 16:14:20 -02:00
isphist.h [media] omap3isp: Remove boilerplate disclaimer and FSF address 2014-08-21 15:25:12 -05:00
isppreview.c media: isppreview: fix __user annotations 2018-04-17 05:31:13 -04:00
isppreview.h [media] omap3isp: remove per ISP module link creation functions 2016-01-11 12:19:07 -02:00
ispreg.h media: omap3isp: Correctly set IO_OUT_SEL and VP_CLK_POL for CCP2 mode 2017-08-20 08:16:13 -04:00
ispresizer.c [media] omap3isp: remove per ISP module link creation functions 2016-01-11 12:19:07 -02:00
ispresizer.h [media] omap3isp: remove per ISP module link creation functions 2016-01-11 12:19:07 -02:00
ispstat.c media: ispstat: use %p to print the address of a buffer 2018-04-17 05:30:44 -04:00
ispstat.h [media] use v4l2_get_timestamp where possible 2015-10-01 08:29:23 -03:00
ispvideo.c media: annotate ->poll() instances 2017-11-27 16:20:06 -05:00
ispvideo.h [media] media/platform: convert drivers to use the new vb2_queue dev field 2016-07-08 14:40:50 -03:00
luma_enhance_table.h [media] omap3isp: Remove boilerplate disclaimer and FSF address 2014-08-21 15:25:12 -05:00
noise_filter_table.h [media] omap3isp: Remove boilerplate disclaimer and FSF address 2014-08-21 15:25:12 -05:00
omap3isp.h media: omap3isp: Parse CSI1 configuration from the device tree 2017-08-20 08:15:50 -04:00