Skip to content
This repository was archived by the owner on Jan 12, 2024. It is now read-only.

Commit f371305

Browse files
author
Jiri Kosina
committed
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 <[email protected]>
1 parent 4e55467 commit f371305

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

samples/hidraw/hid-example.c

+1-2
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,9 @@
1717
/*
1818
* Ugly hack to work around failing compilation on systems that don't
1919
* yet populate new version of hidraw.h to userspace.
20-
*
21-
* If you need this, please have your distro update the kernel headers.
2220
*/
2321
#ifndef HIDIOCSFEATURE
22+
#warning Please have your distro update the userspace kernel headers
2423
#define HIDIOCSFEATURE(len) _IOC(_IOC_WRITE|_IOC_READ, 'H', 0x06, len)
2524
#define HIDIOCGFEATURE(len) _IOC(_IOC_WRITE|_IOC_READ, 'H', 0x07, len)
2625
#endif

0 commit comments

Comments
 (0)