SHA256
1
0
forked from pool/vhba-kmp
vhba-kmp/vhba-signal.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