forked from pool/vhba-kmp
Jan Engelhardt
4b92b266ca
OBS-URL: https://build.opensuse.org/package/show/filesystems/vhba-kmp?expand=0&rev=25
26 lines
749 B
Diff
26 lines
749 B
Diff
From: Jan Engelhardt <jengelh@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
|