1 --- a/src/drv_mei_cpe_linux.h
2 +++ b/src/drv_mei_cpe_linux.h
4 #include <linux/module.h>
6 #include <linux/sched.h>
7 +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,11,0))
8 +#include <linux/sched/signal.h>
10 #include <linux/interrupt.h>
11 #include <linux/version.h>
12 #include <linux/crc32.h>
13 @@ -121,7 +124,11 @@ typedef int (*MEI_RequestIrq_WrapLinux_t
15 Function typedef for the Linux free_irq()
17 +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,12,0))
18 +typedef const void *(*MEI_FreeIrq_WrapLinux_t)( unsigned int usedIrq,
20 typedef void (*MEI_FreeIrq_WrapLinux_t)( unsigned int usedIrq,
25 --- a/src/drv_mei_cpe_linux.c
26 +++ b/src/drv_mei_cpe_linux.c
27 @@ -129,7 +129,7 @@ static int MEI_module_init(void);
30 #if (MEI_DRV_LKM_ENABLE == 1) && (MEI_SUPPORT_DEVICE_VR10_320 != 1)
31 -static void __exit MEI_module_exit(void);
32 +static void MEI_module_exit(void);
34 static void MEI_module_exit(void);
36 @@ -2188,7 +2188,7 @@ static int MEI_module_init (void)
39 #if (MEI_DRV_LKM_ENABLE == 1) && (MEI_SUPPORT_DEVICE_VR10_320 != 1)
40 -static void __exit MEI_module_exit (void)
41 +static void MEI_module_exit (void)
43 static void MEI_module_exit (void)