Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

HID: export headers properly

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>

authored by

Mike Frysinger and committed by
Jiri Kosina
0dd91544 3e52a05f

+3
+2
include/linux/Kbuild
··· 210 210 unifdef-y += hdlc.h 211 211 unifdef-y += hdreg.h 212 212 unifdef-y += hdsmart.h 213 + unifdef-y += hid.h 213 214 unifdef-y += hiddev.h 215 + unifdef-y += hidraw.h 214 216 unifdef-y += hpet.h 215 217 unifdef-y += i2c.h 216 218 unifdef-y += i2c-dev.h
+1
include/linux/hidraw.h
··· 16 16 */ 17 17 18 18 #include <linux/hid.h> 19 + #include <linux/types.h> 19 20 20 21 struct hidraw_report_descriptor { 21 22 __u32 size;