From d31a6e6bf48c297123063581bc2d327a0b2958b5 Mon Sep 17 00:00:00 2001 From: Bart Van Assche Date: Sun, 7 Aug 2016 07:54:52 -0700 Subject: [PATCH] iscsi-scst: Port to kernel v4.7 --- iscsi-scst/kernel/nthread.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/iscsi-scst/kernel/nthread.c b/iscsi-scst/kernel/nthread.c index 4e9ea5f55..ed041cc04 100644 --- a/iscsi-scst/kernel/nthread.c +++ b/iscsi-scst/kernel/nthread.c @@ -721,7 +721,10 @@ restart: oldfs = get_fs(); set_fs(get_ds()); - res = sock_recvmsg(conn->sock, msg, read_size, + res = sock_recvmsg(conn->sock, msg, +#if LINUX_VERSION_CODE < KERNEL_VERSION(4, 7, 0) + read_size, +#endif MSG_DONTWAIT | MSG_NOSIGNAL); set_fs(oldfs);