[etherlab-dev] Cannot compile for kernel 4.14

Gavin Lambert gavin.lambert at tomra.com
Fri Jun 22 02:32:33 CEST 2018

On 2 May 2018 17:34, quoth Joye Laurent:
> I'm using the code from etherlabmaster (default branch) + your own patches
> (Patchset 20171108 based on default branch 33b922ec1871).
> I'm trying to compile a kernel 4.14 with rtmutex enabled at configure time.
> The compilation fails because an include directive is missing. If I add, in the
> file master/locks.h, the line "include <linux/rtmutex>" right after the line
> "#ifdef EC_USE_RTMUTEX", it works.

My apologies for the late reply.  I've tried this myself (without the extra #include) and it compiles ok.

Are you using an -rt patched kernel?  There is an assumption that if you want rtmutexes you should be using an -rt patched kernel as well, as otherwise they would provide less benefit.

More information about the Etherlab-dev mailing list