Re: [PATCH] V4L: fix a compiler warning

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wednesday, April 18, 2012 09:59:58 Guennadi Liakhovetski wrote:
> Fix the warning:
> 
> In file included from /home/lyakh/software/project/24/src/linux-2.6/drivers/media/video/v4l2-subdev.c:29:
> linux-2.6/include/media/v4l2-ctrls.h:497: warning: 'struct file' declared inside parameter list
> linux-2.6/include/media/v4l2-ctrls.h:497: warning: its scope is only this definition or declaration, which is probably not what you want
> linux-2.6/include/media/v4l2-ctrls.h:505: warning: 'struct file' declared inside parameter list
> 
> Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@xxxxxx>

Acked-by: Hans Verkuil <hans.verkuil@xxxxxxxxx>

> ---
>  include/media/v4l2-ctrls.h |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)
> 
> diff --git a/include/media/v4l2-ctrls.h b/include/media/v4l2-ctrls.h
> index 11e6756..c519841 100644
> --- a/include/media/v4l2-ctrls.h
> +++ b/include/media/v4l2-ctrls.h
> @@ -492,6 +492,7 @@ void v4l2_ctrl_add_event(struct v4l2_ctrl *ctrl,
>  void v4l2_ctrl_del_event(struct v4l2_ctrl *ctrl,
>  		struct v4l2_subscribed_event *sev);
>  
> +struct file;
>  /* Can be used as a vidioc_log_status function that just dumps all controls
>     associated with the filehandle. */
>  int v4l2_ctrl_log_status(struct file *file, void *fh);
> 
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux