From mboxrd@z Thu Jan 1 00:00:00 1970 From: GOTO Masanori Subject: [PATCH] don't export videodev.h internal structure to userland Date: Tue, 04 Nov 2003 14:17:12 +0900 Sender: linux-fbdev-devel-admin@lists.sourceforge.net Message-ID: <80llqw90h3.wl@oris.opensource.jp> Mime-Version: 1.0 (generated by SEMI 1.14.3 - "Ushinoya") Return-path: Received: from sc8-sf-mx2-b.sourceforge.net ([10.3.1.12] helo=sc8-sf-mx2.sourceforge.net) by sc8-sf-list1.sourceforge.net with esmtp (Cipher TLSv1:DES-CBC3-SHA:168) (Exim 3.31-VA-mm2 #1 (Debian)) id 1AGtZ6-0005A2-00 for ; Mon, 03 Nov 2003 21:17:16 -0800 Received: from oris.opensource.jp ([218.44.239.77] ident=postfix) by sc8-sf-mx2.sourceforge.net with esmtp (Exim 4.24) id 1AGtZ6-000230-9p for linux-fbdev-devel@lists.sourceforge.net; Mon, 03 Nov 2003 21:17:16 -0800 Errors-To: linux-fbdev-devel-admin@lists.sourceforge.net List-Help: List-Post: List-Subscribe: , List-Id: List-Unsubscribe: , List-Archive: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-fbdev-devel@lists.sourceforge.net Cc: gotom@debian.or.jp Hi, This patch fixes not to compile with linux/videodev.h: > cat v.c #include int main() {} > gcc v.c In file included from /usr/include/linux/device.h:17, from /usr/include/linux/videodev.h:6, from /tmp/v.c:1: /usr/include/linux/list.h:576:2: warning: #warning "don't include kernel headers in userspace" In file included from /usr/include/linux/device.h:18, from /usr/include/linux/videodev.h:6, from /tmp/v.c:1: /usr/include/linux/spinlock.h: In function `bit_spin_lock': /usr/include/linux/spinlock.h:413: error: invalid type argument of `->' ... This problem is occured by including device.h outside of __KERNEL__, so I move the place of this header inclusion. This and previous patch is for kernel 2.6.0-test9. Please apply it. Regards, -- gotom --- include/linux/videodev.h 2003-11-04 14:04:49.000000000 +0900 +++ include/linux/videodev.h 2003-11-04 14:04:04.000000000 +0900 @@ -3,13 +3,13 @@ #include #include -#include #define HAVE_V4L2 1 #include #ifdef __KERNEL__ +#include #include #include ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/