Re: [PATCH 2/2] module: sys_funcs.c: init_fpu(): add definition for kernel 4.14 and up

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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:
> In kernel 4.14 the function fpu__activate_curr to fpu__initialize.
>
> Based on upstream commit:
> 2ce03d850b9a2f17d55596ecfa86e72b5687a627 -
> x86/fpu: Rename fpu__activate_curr() to fpu__initialize()
> ---
>  module/sys_funcs.c | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/module/sys_funcs.c b/module/sys_funcs.c
> index 6676463..b675e59 100644
> --- a/module/sys_funcs.c
> +++ b/module/sys_funcs.c
> @@ -53,7 +53,9 @@
>  #include <asm-generic/set_memory.h>
>  #endif
>  
> -#if LINUX_VERSION_CODE > KERNEL_VERSION(4,2,0)
> +#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,14,0)
> +#define init_fpu(current)	fpu__initialize(&current->thread.fpu);
> +#elif LINUX_VERSION_CODE > KERNEL_VERSION(4,2,0)
>  #define init_fpu(current)	fpu__activate_curr(&current->thread.fpu);
>  #endif
>  




[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux