From: Jiri Kosina Date: Wed, 27 Mar 2013 16:29:18 +0000 (+0100) Subject: HID: hidraw: warn if userspace headers are outdated X-Git-Tag: upstream/snapshot3+hdmi~5258^2~1^3~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f37130533f68711fd6bae2c79950b8e72002bad6;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git HID: hidraw: warn if userspace headers are outdated Put a warning into sample hidraw code in samples/hidraw/hid-example.c in case the userspace headers are missing the necessary defines and need to be updated. Signed-off-by: Jiri Kosina --- diff --git a/samples/hidraw/hid-example.c b/samples/hidraw/hid-example.c index 816e2dc..512a7e5 100644 --- a/samples/hidraw/hid-example.c +++ b/samples/hidraw/hid-example.c @@ -17,10 +17,9 @@ /* * Ugly hack to work around failing compilation on systems that don't * yet populate new version of hidraw.h to userspace. - * - * If you need this, please have your distro update the kernel headers. */ #ifndef HIDIOCSFEATURE +#warning Please have your distro update the userspace kernel headers #define HIDIOCSFEATURE(len) _IOC(_IOC_WRITE|_IOC_READ, 'H', 0x06, len) #define HIDIOCGFEATURE(len) _IOC(_IOC_WRITE|_IOC_READ, 'H', 0x07, len) #endif