]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
[evdev] Fix build for older versions of clang
authorOleksandr Tymoshenko <gonzo@FreeBSD.org>
Mon, 26 Dec 2016 17:48:13 +0000 (17:48 +0000)
committerOleksandr Tymoshenko <gonzo@FreeBSD.org>
Mon, 26 Dec 2016 17:48:13 +0000 (17:48 +0000)
commit71546cd96ab9ad5c2dacff61350b50c1cbaaf215
tree4ba891cd175627b952d46f61cf43eada2e2bae12
parented09c2c161ac033c7a916440269b0f6d38e792f2
[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
MFC after: 3 days
sys/dev/evdev/evdev_utils.c