Hello community, here is the log from the commit of package vhba-kmp for openSUSE:Factory checked in at 2017-05-18 20:51:34 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/vhba-kmp (Old) and /work/SRC/openSUSE:Factory/.vhba-kmp.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "vhba-kmp" Thu May 18 20:51:34 2017 rev:13 rq:495765 version:20161009 Changes: -------- --- /work/SRC/openSUSE:Factory/vhba-kmp/vhba-kmp.changes 2017-02-09 11:16:59.719367890 +0100 +++ /work/SRC/openSUSE:Factory/.vhba-kmp.new/vhba-kmp.changes 2017-05-18 20:51:45.246183643 +0200 @@ -1,0 +2,5 @@ +Wed May 17 22:20:05 UTC 2017 - jeng...@inai.de + +- Add vhba-signal.diff so it builds with Linux 4.11 + +------------------------------------------------------------------- New: ---- vhba-signal.diff ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ vhba-kmp.spec ++++++ --- /var/tmp/diff_new_pack.MFcpfF/_old 2017-05-18 20:51:45.766110283 +0200 +++ /var/tmp/diff_new_pack.MFcpfF/_new 2017-05-18 20:51:45.770109717 +0200 @@ -29,11 +29,12 @@ Source2: %name-preamble Patch1: vhba-no-werror.diff Patch2: vhba-devname.diff +Patch3: vhba-signal.diff BuildRequires: kernel-syms >= 2.6.20 BuildRequires: modutils BuildRoot: %{_tmppath}/%{name}-%{version}-build -%kernel_module_package -n vhba -p %name-preamble +%{?kernel_module_package:%kernel_module_package -n vhba -p %name-preamble} %description A Linux kernel module implementing a virtual SCSI Host Bus Adapter to @@ -56,7 +57,7 @@ %prep echo %flavors_to_build %setup -qn vhba-module-%version -%patch -P 1 -P 2 -p1 +%patch -P 1 -P 2 -P 3 -p1 %build for flavor in %flavors_to_build; do ++++++ vhba-signal.diff ++++++ From: Jan Engelhardt <jeng...@inai.de> Date: 2017-05-18 00:18:13.674608963 +0200 build: resolve build failure with Linux 4.11+ vhba.c:711:13: error: implicit declaration of function 'signal_pending' [-Werror=implicit-function-declaration] if (signal_pending(current)) { --- vhba.c | 3 +++ 1 file changed, 3 insertions(+) Index: vhba-module-20161009/vhba.c =================================================================== --- vhba-module-20161009.orig/vhba.c +++ vhba-module-20161009/vhba.c @@ -28,6 +28,9 @@ #include <linux/poll.h> #include <linux/slab.h> #include <linux/version.h> +#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,11,0) +# include <linux/sched/signal.h> +#endif #ifdef CONFIG_COMPAT #include <linux/compat.h> #endif