HID: export headers properly
authorMike Frysinger <vapier@gentoo.org>
Tue, 8 Apr 2008 08:20:36 +0000 (10:20 +0200)
committerJiri Kosina <jkosina@suse.cz>
Tue, 22 Apr 2008 09:34:59 +0000 (11:34 +0200)
I have people whining about using these headers in userspace, and they have
__KERNEL__ markings which implies they're supposed to be exported.  I also
added the required linux/types.h include to hidraw.h since it uses the __u##
kernel types.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Cc: Jiri Kosina <jikos@jikos.cz>
Cc: Dmitry Torokhov <dtor@mail.ru>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
include/linux/Kbuild
include/linux/hidraw.h

index b3d9ccd..5d74172 100644 (file)
@@ -210,7 +210,9 @@ unifdef-y += hdlcdrv.h
 unifdef-y += hdlc.h
 unifdef-y += hdreg.h
 unifdef-y += hdsmart.h
+unifdef-y += hid.h
 unifdef-y += hiddev.h
+unifdef-y += hidraw.h
 unifdef-y += hpet.h
 unifdef-y += i2c.h
 unifdef-y += i2c-dev.h
index 0536f29..dbb5c8c 100644 (file)
@@ -16,6 +16,7 @@
  */
 
 #include <linux/hid.h>
+#include <linux/types.h>
 
 struct hidraw_report_descriptor {
        __u32 size;