Skip to contentSkip to conversation

linux/video_{de,en}coder.h: cleanup for userspace

PATCH In review Mike Frysinger 2 participants 3 messages Oct 26, 2008 – Oct 28, 2008

lore
Share & tools
lore
#0 lore raw

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
index 121e26d..25a191a 100644
@@ -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
index 4b0e690..b7b6423 100644
@@ -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
#1 lore raw
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.h header 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.

#2 lore raw
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.h header 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.

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