summaryrefslogtreecommitdiffstats
path: root/sys/dev/evdev/evdev_utils.c
diff options
context:
space:
mode:
authorgonzo <gonzo@FreeBSD.org>2017-01-07 00:18:51 +0000
committergonzo <gonzo@FreeBSD.org>2017-01-07 00:18:51 +0000
commitbe2281d0ad2b26c26bb899c1eeb05b547fab04f4 (patch)
tree43d02029112f1c9ed9972f0782f0360c044f0c75 /sys/dev/evdev/evdev_utils.c
parent51a0a84c67695d93803129d2a5a4527fb37a7b68 (diff)
downloadFreeBSD-src-be2281d0ad2b26c26bb899c1eeb05b547fab04f4.zip
FreeBSD-src-be2281d0ad2b26c26bb899c1eeb05b547fab04f4.tar.gz
MFC r310612:
[evdev] Fix build for older versions of clang There was report of stable/11 build failure on older versions of FreeBSD. The problem was a reference to static variable in inline function. Although fairly recent versions of clang can cope with this situation just fine there is no strict requirement to make functions in question inline, they're not in any time-critical codepath. So to keep HEAD and 11-STABLE buildable on older FreeBSDs some of the util functions were converted from inline to normal. Reported by: hselasky
Diffstat (limited to 'sys/dev/evdev/evdev_utils.c')
-rw-r--r--sys/dev/evdev/evdev_utils.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/evdev/evdev_utils.c b/sys/dev/evdev/evdev_utils.c
index 8606342..d78e392 100644
--- a/sys/dev/evdev/evdev_utils.c
+++ b/sys/dev/evdev/evdev_utils.c
@@ -206,13 +206,13 @@ static uint16_t evdev_led_codes[] = {
LED_SCROLLL, /* SLKED */
};
-inline uint16_t
+uint16_t
evdev_hid2key(int scancode)
{
return evdev_usb_scancodes[scancode];
}
-inline void
+void
evdev_support_all_known_keys(struct evdev_dev *evdev)
{
size_t i;
@@ -222,7 +222,7 @@ evdev_support_all_known_keys(struct evdev_dev *evdev)
evdev_support_key(evdev, evdev_at_set1_scancodes[i]);
}
-inline uint16_t
+uint16_t
evdev_scancode2key(int *state, int scancode)
{
uint16_t keycode;
OpenPOWER on IntegriCloud