Package: backfire-dkms
Version: 1.0-1
Tags: patch
Followup-For: Bug #867706

Can you please check if the attached patch fixes the problem for you?

-- System Information:
Debian Release: buster/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.11.0-1-amd64 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) (ignored: LC_ALL 
set to C.UTF-8), LANGUAGE=en_US:en (charmap=UTF-8) (ignored: LC_ALL set to 
C.UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages backfire-dkms depends on:
ii  dkms  2.3-3

backfire-dkms recommends no packages.

backfire-dkms suggests no packages.

-- no debconf information
diff -Nru rt-tests-1.0/debian/patches/backfire-fix-build-failure-for-4.11-kernels.patch rt-tests-1.0/debian/patches/backfire-fix-build-failure-for-4.11-kernels.patch
--- rt-tests-1.0/debian/patches/backfire-fix-build-failure-for-4.11-kernels.patch	1969-12-31 21:00:00.000000000 -0300
+++ rt-tests-1.0/debian/patches/backfire-fix-build-failure-for-4.11-kernels.patch	2016-06-19 18:46:40.000000000 -0300
@@ -0,0 +1,28 @@
+From: Marcelo Henrique Cerri <marcelo.ce...@canonical.com>
+Subject: [PATCH] backfire: fix build failure for 4.11+ kernels
+Bug-Debian: 867706
+
+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.ce...@canonical.com>
+
+--- 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/types.h>
diff -Nru rt-tests-1.0/debian/patches/series rt-tests-1.0/debian/patches/series
--- rt-tests-1.0/debian/patches/series	2016-06-19 17:45:37.000000000 -0300
+++ rt-tests-1.0/debian/patches/series	2016-06-19 18:46:40.000000000 -0300
@@ -5,3 +5,4 @@
 fix_comment_about_realtime_group.patch
 backfire-fix-build-failure-for-modern-kernels.patch
 install_manpage_rt-migrate-test.patch
+backfire-fix-build-failure-for-4.11-kernels.patch

Reply via email to