* [PATCH] v4l2-fh: Add forward declaration for struct file
@ 2013-10-03 21:48 Laurent Pinchart
2013-10-03 21:54 ` Laurent Pinchart
0 siblings, 1 reply; 2+ messages in thread
From: Laurent Pinchart @ 2013-10-03 21:48 UTC (permalink / raw)
To: linux-media
Pointers to struct file are used as function arguments, but the
structure isn't declared. Add a forward declaration.
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
---
include/media/v4l2-fh.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/include/media/v4l2-fh.h b/include/media/v4l2-fh.h
index a62ee18..76aeec7 100644
--- a/include/media/v4l2-fh.h
+++ b/include/media/v4l2-fh.h
@@ -28,6 +28,7 @@
#include <linux/list.h>
+struct file;
struct video_device;
struct v4l2_ctrl_handler;
--
Regards,
Laurent Pinchart
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] v4l2-fh: Add forward declaration for struct file
2013-10-03 21:48 [PATCH] v4l2-fh: Add forward declaration for struct file Laurent Pinchart
@ 2013-10-03 21:54 ` Laurent Pinchart
0 siblings, 0 replies; 2+ messages in thread
From: Laurent Pinchart @ 2013-10-03 21:54 UTC (permalink / raw)
To: linux-media
On Thursday 03 October 2013 23:48:56 Laurent Pinchart wrote:
> Pointers to struct file are used as function arguments, but the
> structure isn't declared. Add a forward declaration.
Scratch this, I've sent the patch too soon. struct file is dereferenced in
v4l2-fh.h, it does need to be properly defined. I'll send the correct patch.
Sorry for the noise.
> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
> ---
> include/media/v4l2-fh.h | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/include/media/v4l2-fh.h b/include/media/v4l2-fh.h
> index a62ee18..76aeec7 100644
> --- a/include/media/v4l2-fh.h
> +++ b/include/media/v4l2-fh.h
> @@ -28,6 +28,7 @@
>
> #include <linux/list.h>
>
> +struct file;
> struct video_device;
> struct v4l2_ctrl_handler;
--
Regards,
Laurent Pinchart
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-10-03 21:53 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-03 21:48 [PATCH] v4l2-fh: Add forward declaration for struct file Laurent Pinchart
2013-10-03 21:54 ` Laurent Pinchart
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox