From ff88ccb1cd35fa8e8362de4d6f08af678b9966e4 Mon Sep 17 00:00:00 2001 From: Shaun Ruffell Date: Thu, 1 Jun 2017 12:05:57 -0500 Subject: [PATCH] signal_pending() is now in linux/sched/signal.h include Upstream kernel 4.11, in commit (bd0f9b356d00aa241ced36fb075a07041c28d3b8 "sched/headers: fix up header file dependency on "), now requires users of signal_pending to include the new linux/sched/signal.h file. Signed-off-by: Shaun Ruffell --- drivers/dahdi/dahdi-base.c | 5 +++++ drivers/dahdi/wcaxx-base.c | 4 ++++ drivers/dahdi/wctc4xxp/base.c | 8 +++++++- drivers/dahdi/wctdm24xxp/base.c | 5 +++++ drivers/dahdi/wcte12xp/base.c | 5 +++++ drivers/dahdi/wcte43x-base.c | 4 ++++ 6 files changed, 30 insertions(+), 1 deletion(-) diff --git a/drivers/dahdi/dahdi-base.c b/drivers/dahdi/dahdi-base.c index f2caad0..305ea67 100644 --- a/drivers/dahdi/dahdi-base.c +++ b/drivers/dahdi/dahdi-base.c @@ -66,6 +66,11 @@ /* Grab fasthdlc with tables */ #define FAST_HDLC_NEED_TABLES #include + +#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0) +#include +#endif /* 4.11.0 */ + #include "ecdis.h" #include "dahdi.h" diff --git a/drivers/dahdi/wcaxx-base.c b/drivers/dahdi/wcaxx-base.c index 00c2d21..ed7207a 100644 --- a/drivers/dahdi/wcaxx-base.c +++ b/drivers/dahdi/wcaxx-base.c @@ -50,6 +50,10 @@ #include #include +#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0) +#include +#endif /* 4.11.0 */ + #include "proslic.h" #include diff --git a/drivers/dahdi/wctc4xxp/base.c b/drivers/dahdi/wctc4xxp/base.c index 068f741..0d76d6a 100644 --- a/drivers/dahdi/wctc4xxp/base.c +++ b/drivers/dahdi/wctc4xxp/base.c @@ -26,6 +26,7 @@ #include #include #include + #include #include #include @@ -40,7 +41,12 @@ #include -#include "dahdi/kernel.h" +#include + +#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0) +#include +#endif /* 4.11.0 */ + #include diff --git a/drivers/dahdi/wctdm24xxp/base.c b/drivers/dahdi/wctdm24xxp/base.c index 8ecb125..ad899f8 100644 --- a/drivers/dahdi/wctdm24xxp/base.c +++ b/drivers/dahdi/wctdm24xxp/base.c @@ -44,6 +44,7 @@ Tx Gain - W/Pre-Emphasis: -23.99 to 0.00 db #include #include #include + #include #include #include @@ -72,6 +73,10 @@ Tx Gain - W/Pre-Emphasis: -23.99 to 0.00 db #include #include +#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0) +#include +#endif /* 4.11.0 */ + #include "proslic.h" #include "wctdm24xxp.h" diff --git a/drivers/dahdi/wcte12xp/base.c b/drivers/dahdi/wcte12xp/base.c index 2fe74bc..c327c5f 100644 --- a/drivers/dahdi/wcte12xp/base.c +++ b/drivers/dahdi/wcte12xp/base.c @@ -40,11 +40,16 @@ #include #include #include + #include #include #include +#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0) +#include +#endif /* 4.11.0 */ + #include "wct4xxp/wct4xxp.h" /* For certain definitions */ #include "voicebus/voicebus.h" diff --git a/drivers/dahdi/wcte43x-base.c b/drivers/dahdi/wcte43x-base.c index 3c1b9e5..3e6159b 100644 --- a/drivers/dahdi/wcte43x-base.c +++ b/drivers/dahdi/wcte43x-base.c @@ -46,6 +46,10 @@ #include #include +#if LINUX_VERSION_CODE >= KERNEL_VERSION(4, 11, 0) +#include +#endif /* 4.11.0 */ + #include "wct4xxp/wct4xxp.h" /* For certain definitions */ #include "wcxb.h" #include "wcxb_spi.h"