From 0add4c2028defac49e5f57eb9b562b7ee7c77cef Mon Sep 17 00:00:00 2001 From: Dustin Brown Date: Wed, 16 Aug 2017 15:07:17 -0700 Subject: [PATCH] qcacmn: Migrate to linux/sched/signal.h Linux kernel version 4.11 moved several signal related functions out of linux/sched.h into linux/sched/signal.h. Add conditional compilation to include the correct file based on the version of the Linux kernel being compiled against. Change-Id: Ic50a8ec0a76178b5231388983a890bdfdc4615e2 CRs-Fixed: 2094019 --- qdf/linux/src/qdf_threads.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qdf/linux/src/qdf_threads.c b/qdf/linux/src/qdf_threads.c index df82fbc4b8fc..de767605c2e6 100644 --- a/qdf/linux/src/qdf_threads.c +++ b/qdf/linux/src/qdf_threads.c @@ -35,7 +35,11 @@ #include #include #include +#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 11, 0) #include +#else +#include +#endif /* KERNEL_VERSION(4, 11, 0) */ #include #include #include