Please ignore these patches. Was sent by a mistaken git-send-email command. I'm very sorry for that. On 09/11/17 17:42, Eyal Moscovici wrote: > This is done in preparation for kernel 4.14 where the name of the function > changed again. > --- > module/sys_funcs.c | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/module/sys_funcs.c b/module/sys_funcs.c > index 7d5282f..6676463 100644 > --- a/module/sys_funcs.c > +++ b/module/sys_funcs.c > @@ -53,6 +53,10 @@ > #include <asm-generic/set_memory.h> > #endif > > +#if LINUX_VERSION_CODE > KERNEL_VERSION(4,2,0) > +#define init_fpu(current) fpu__activate_curr(¤t->thread.fpu); > +#endif > + > #include <hvx_ioctls.h> > #include <hvx_host_iface.h> > #include <hvx_version.h> > @@ -1215,12 +1219,8 @@ static void hvx_cpu_ioctl_prerun(struct hvx_iface_cpu *cpu_iface) > > pr_debug("CPU-%d: start prerun\n", hvx_run->cpu_id); > > -#if LINUX_VERSION_CODE > KERNEL_VERSION(4,2,0) > - fpu__activate_curr(¤t->thread.fpu); > -#else > /* Save host FPU state and set cr0.ts */ > init_fpu(current); > -#endif > > /* Make sure host doesn't run with cr4.pge bit set */ > BUG_ON(native_read_cr4() & X86_CR4_PGE);