提交 5e6b83ed 编写于 作者: D David Woodhouse 提交者: Linus Torvalds

Fix header export of videodev2.h, ivtv.h, ivtvfb.h

The exported copy of videodev2.h contains this line:

	#define #include <sys/time.h>

This is because for some reason it defines __user for itself -- despite
the fact that we remove all instances of __user when exporting headers.
_All_ pointers in userspace are user pointers. Fix it by removing the
unnecessary '#define __user' from the file.

The new headers ivtv.h and ivtvfb.h would have the same problem... if
whoever put them there had actually remembered to add them to the Kbuild
file while he was at it. Fix those too, and export them as was
presumably intended.

Note that includes of <linux/compiler.h> are also stripped by the header
export process, so those don't need to be conditional.
Signed-off-by: NDavid Woodhouse <David.Woodhouse@intel.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab@infradead.org>
Acked-by: NHans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 605d9288
...@@ -250,6 +250,8 @@ unifdef-y += isdn.h ...@@ -250,6 +250,8 @@ unifdef-y += isdn.h
unifdef-y += isdnif.h unifdef-y += isdnif.h
unifdef-y += isdn_divertif.h unifdef-y += isdn_divertif.h
unifdef-y += isdn_ppp.h unifdef-y += isdn_ppp.h
unifdef-y += ivtv.h
unifdef-y += ivtvfb.h
unifdef-y += joystick.h unifdef-y += joystick.h
unifdef-y += kdev_t.h unifdef-y += kdev_t.h
unifdef-y += kd.h unifdef-y += kd.h
......
...@@ -21,11 +21,7 @@ ...@@ -21,11 +21,7 @@
#ifndef __LINUX_IVTV_H__ #ifndef __LINUX_IVTV_H__
#define __LINUX_IVTV_H__ #define __LINUX_IVTV_H__
#ifdef __KERNEL__ #include <linux/compiler.h>
#include <linux/compiler.h> /* need __user */
#else
#define __user
#endif
#include <linux/types.h> #include <linux/types.h>
/* ivtv knows several distinct output modes: MPEG streaming, /* ivtv knows several distinct output modes: MPEG streaming,
......
...@@ -21,11 +21,7 @@ ...@@ -21,11 +21,7 @@
#ifndef __LINUX_IVTVFB_H__ #ifndef __LINUX_IVTVFB_H__
#define __LINUX_IVTVFB_H__ #define __LINUX_IVTVFB_H__
#ifdef __KERNEL__ #include <linux/compiler.h>
#include <linux/compiler.h> /* need __user */
#else
#define __user
#endif
#include <linux/types.h> #include <linux/types.h>
/* Framebuffer external API */ /* Framebuffer external API */
......
...@@ -55,13 +55,13 @@ ...@@ -55,13 +55,13 @@
*/ */
#ifndef __LINUX_VIDEODEV2_H #ifndef __LINUX_VIDEODEV2_H
#define __LINUX_VIDEODEV2_H #define __LINUX_VIDEODEV2_H
#ifdef __KERNEL__ #ifdef __KERNEL__
#include <linux/time.h> /* need struct timeval */ #include <linux/time.h> /* need struct timeval */
#include <linux/compiler.h> /* need __user */
#else #else
#define __user
#include <sys/time.h> #include <sys/time.h>
#endif #endif
#include <linux/compiler.h>
#include <linux/ioctl.h> #include <linux/ioctl.h>
#include <linux/types.h> #include <linux/types.h>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册