ltq-vdsl-mei: Fix section mismatch
[openwrt/openwrt.git] / package / kernel / lantiq / ltq-vdsl-mei / patches / 001-fix-compile.patch
1 --- a/src/drv_mei_cpe_linux.h
2 +++ b/src/drv_mei_cpe_linux.h
3 @@ -31,6 +31,9 @@
4 #include <linux/module.h>
5
6 #include <linux/sched.h>
7 +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,11,0))
8 +#include <linux/sched/signal.h>
9 +#endif
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
14 /**
15 Function typedef for the Linux free_irq()
16 */
17 +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,12,0))
18 +typedef const void *(*MEI_FreeIrq_WrapLinux_t)( unsigned int usedIrq,
19 +#else
20 typedef void (*MEI_FreeIrq_WrapLinux_t)( unsigned int usedIrq,
21 +#endif
22 void *usedDevId );
23
24
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);
28 #endif
29
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);
33 #else
34 static void MEI_module_exit(void);
35 #endif
36 @@ -2188,7 +2188,7 @@ static int MEI_module_init (void)
37 Called by the kernel.
38 */
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)
42 #else
43 static void MEI_module_exit (void)
44 #endif