mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-21 14:37:57 +00:00
73ba5e11f7
This is fixing multiple compile problems with kernel 4.14 and updates the code to take care of changes introduced between kernel 4.9 and 4.14. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> Signed-off-by: Mathias Kresin <dev@kresin.me>
25 lines
696 B
Diff
25 lines
696 B
Diff
--- a/src/drv_mei_cpe_linux.h
|
|
+++ b/src/drv_mei_cpe_linux.h
|
|
@@ -31,6 +31,9 @@
|
|
#include <linux/module.h>
|
|
|
|
#include <linux/sched.h>
|
|
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,11,0))
|
|
+#include <linux/sched/signal.h>
|
|
+#endif
|
|
#include <linux/interrupt.h>
|
|
#include <linux/version.h>
|
|
#include <linux/crc32.h>
|
|
@@ -121,7 +124,11 @@ typedef int (*MEI_RequestIrq_WrapLinux_t
|
|
/**
|
|
Function typedef for the Linux free_irq()
|
|
*/
|
|
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,12,0))
|
|
+typedef const void *(*MEI_FreeIrq_WrapLinux_t)( unsigned int usedIrq,
|
|
+#else
|
|
typedef void (*MEI_FreeIrq_WrapLinux_t)( unsigned int usedIrq,
|
|
+#endif
|
|
void *usedDevId );
|
|
|
|
|