Commit f37130533f68711fd6bae2c79950b8e72002bad6
1 parent
4e55467efb
Exists in
master
and in
20 other branches
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 <jkosina@suse.cz>
Showing 1 changed file with 1 additions and 2 deletions Side-by-side Diff
samples/hidraw/hid-example.c
... | ... | @@ -17,10 +17,9 @@ |
17 | 17 | /* |
18 | 18 | * Ugly hack to work around failing compilation on systems that don't |
19 | 19 | * yet populate new version of hidraw.h to userspace. |
20 | - * | |
21 | - * If you need this, please have your distro update the kernel headers. | |
22 | 20 | */ |
23 | 21 | #ifndef HIDIOCSFEATURE |
22 | +#warning Please have your distro update the userspace kernel headers | |
24 | 23 | #define HIDIOCSFEATURE(len) _IOC(_IOC_WRITE|_IOC_READ, 'H', 0x06, len) |
25 | 24 | #define HIDIOCGFEATURE(len) _IOC(_IOC_WRITE|_IOC_READ, 'H', 0x07, len) |
26 | 25 | #endif |