linux/video_{de,en}coder.h: cleanup for userspace
PATCH 1/1 linux/video_{de,en}coder.h: cleanup for userspace
Make sure the linux/video_{de,en}coder.h header files include other header files that they use (for types and structures).
--- include/linux/video_decoder.h | 3 +++ include/linux/video_encoder.h | 2 ++ 2 files changed, 5 insertions(+), 0 deletions(-)
include/linux/video_decoder.h +3 -0
@@ -1,6 +1,9 @@#ifndef _LINUX_VIDEO_DECODER_H#define _LINUX_VIDEO_DECODER_H +#include <linux/types.h> +#include <linux/videodev.h> +#define HAVE_VIDEO_DECODER 1 struct video_decoder_capability { /* this name is too long */
include/linux/video_encoder.h +2 -0
@@ -1,6 +1,8 @@ #ifndef _LINUX_VIDEO_ENCODER_H #define _LINUX_VIDEO_ENCODER_H +#include <linux/types.h> + struct video_encoder_capability { /* this name is too long */ __u32 flags; #define VIDEO_ENCODER_PAL 1 /* can encode PAL signal */
Signature · 1 line
1.6.0.2
Quoted 3 lines · On Sun, 26 Oct 2008 06:47:44 -0400 Mike Frysinger <[email protected]> wrote:
Make sure the
linux/video_{de,en}coder.hheader files include other header files that they use (for types and structures).
checkpatch (amazing tool, and it's free!) said:
ERROR: Don't use <linux/videodev.h>: see Documentation/feature-removal-schedule.txt #23: FILE: include/linux/video_decoder.h:5:
+#include <linux/videodev.h>
so I'll drop this one.
Quoted 11 lines · Andrew Morton
Quoted 2 lines · On Sun, 26 Oct 2008 06:47:44 -0400 Mike Frysinger wrote:
Make sure the
linux/video_{de,en}coder.hheader files include other header files that they use (for types and structures).checkpatch (amazing tool, and it's free!) said:
ERROR: Don't use <
linux/videodev.h>: seeDocumentation/feature-removal-schedule.txt#23: FILE:include/linux/video_decoder.h:5:
+#include <linux/videodev.h>so I'll drop this one.
maybe, but video_decoder.h def uses things in linux/videodev.h today. if we add the include, hopefully it'll help people realize they need to remove the relevant things from video_decoder.h as well. -mike