signal_pending() is now in linux/sched/signal.h include
authorShaun Ruffell <sruffell@digium.com>
Thu, 1 Jun 2017 17:05:57 +0000 (12:05 -0500)
committerTzafrir Cohen <tzafrir.cohen@xorcom.com>
Mon, 26 Jun 2017 14:48:40 +0000 (17:48 +0300)
Upstream kernel 4.11, in commit (bd0f9b356d00aa241ced36fb075a07041c28d3b8
"sched/headers: fix up header file dependency on <linux/sched/signal.h>"), now
requires users of signal_pending to include the new linux/sched/signal.h file.

Signed-off-by: Shaun Ruffell <sruffell@digium.com>

drivers/dahdi/dahdi-base.c
drivers/dahdi/wcaxx-base.c
drivers/dahdi/wctc4xxp/base.c
drivers/dahdi/wctdm24xxp/base.c
drivers/dahdi/wcte12xp/base.c
drivers/dahdi/wcte43x-base.c

index f2caad0..305ea67 100644 (file)
 /* Grab fasthdlc with tables */
 #define FAST_HDLC_NEED_TABLES
 #include <dahdi/kernel.h>
+
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0)
+#include <linux/sched/signal.h>
+#endif /* 4.11.0 */
+
 #include "ecdis.h"
 #include "dahdi.h"
 
index 00c2d21..ed7207a 100644 (file)
 #include <dahdi/kernel.h>
 #include <dahdi/wctdm_user.h>
 
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0)
+#include <linux/sched/signal.h>
+#endif /* 4.11.0 */
+
 #include "proslic.h"
 
 #include <dahdi/kernel.h>
index 068f741..0d76d6a 100644 (file)
@@ -26,6 +26,7 @@
 #include <linux/slab.h>
 #include <linux/kmod.h>
 #include <linux/sched.h>
+
 #include <linux/pci.h>
 #include <linux/interrupt.h>
 #include <linux/delay.h>
 
 #include <stdbool.h>
 
-#include "dahdi/kernel.h"
+#include <dahdi/kernel.h>
+
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0)
+#include <linux/sched/signal.h>
+#endif /* 4.11.0 */
+
 
 #include <linux/io.h>
 
index 8ecb125..ad899f8 100644 (file)
@@ -44,6 +44,7 @@ Tx Gain - W/Pre-Emphasis: -23.99 to 0.00 db
 #include <linux/init.h>
 #include <linux/pci.h>
 #include <linux/sched.h>
+
 #include <linux/interrupt.h>
 #include <linux/workqueue.h>
 #include <linux/delay.h>
@@ -72,6 +73,10 @@ Tx Gain - W/Pre-Emphasis: -23.99 to 0.00 db
 #include <dahdi/kernel.h>
 #include <dahdi/wctdm_user.h>
 
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0)
+#include <linux/sched/signal.h>
+#endif /* 4.11.0 */
+
 #include "proslic.h"
 
 #include "wctdm24xxp.h"
index 2fe74bc..c327c5f 100644 (file)
 #include <linux/workqueue.h>
 #include <linux/delay.h>
 #include <linux/sched.h>
+
 #include <linux/slab.h>
 
 #include <stdbool.h>
 #include <dahdi/kernel.h>
 
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0)
+#include <linux/sched/signal.h>
+#endif /* 4.11.0 */
+
 #include "wct4xxp/wct4xxp.h"   /* For certain definitions */
 
 #include "voicebus/voicebus.h"
index 3c1b9e5..3e6159b 100644 (file)
 #include <stdbool.h>
 #include <dahdi/kernel.h>
 
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0)
+#include <linux/sched/signal.h>
+#endif /* 4.11.0 */
+
 #include "wct4xxp/wct4xxp.h"   /* For certain definitions */
 #include "wcxb.h"
 #include "wcxb_spi.h"