linux-rt-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] backfire: fix build failure for 4.11+ kernels
@ 2017-07-11 17:44 Marcelo Henrique Cerri
  2017-07-12  8:42 ` Uwe Kleine-König
  0 siblings, 1 reply; 5+ messages in thread
From: Marcelo Henrique Cerri @ 2017-07-11 17:44 UTC (permalink / raw)
  To: Clark Williams, John Kacur; +Cc: rt-users, Marcelo Henrique Cerri

Since v4.11-rc1~18^2~76, kill_pid() is declared in
"linux/sched/signal.h" instead of in "linux/sched.h".

Include the correct header file based on the kernel version to keep
it compatible with older kernels.

Signed-off-by: Marcelo Henrique Cerri <marcelo.cerri@canonical.com>
---
 src/backfire/backfire.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/backfire/backfire.c b/src/backfire/backfire.c
index aaf9c4af8e00..7b3b5faf7a11 100644
--- a/src/backfire/backfire.c
+++ b/src/backfire/backfire.c
@@ -20,8 +20,13 @@
  */
 
 #include <linux/module.h>
+#include <linux/version.h>
 
+#if LINUX_VERSION_CODE < KERNEL_VERSION(4,11,0)
 #include <linux/sched.h>
+#else
+#include <linux/sched/signal.h>
+#endif
 #include <linux/cpumask.h>
 #include <linux/time.h>
 #include <linux/smp_lock.h>
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-07-14  0:06 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-11 17:44 [PATCH] backfire: fix build failure for 4.11+ kernels Marcelo Henrique Cerri
2017-07-12  8:42 ` Uwe Kleine-König
2017-07-13 15:26   ` John Kacur
2017-07-13 16:39     ` Uwe Kleine-König
2017-07-14  0:06       ` John Kacur

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).