]> git.pld-linux.org Git - packages/lin_tape.git/blobdiff - kernel-4.17.patch
- fix building with kernel 4.17
[packages/lin_tape.git] / kernel-4.17.patch
diff --git a/kernel-4.17.patch b/kernel-4.17.patch
new file mode 100644 (file)
index 0000000..3902b9d
--- /dev/null
@@ -0,0 +1,14 @@
+--- lin_tape-3.0.23/intercept.c~       2018-06-18 19:40:39.000000000 +0200
++++ lin_tape-3.0.23/intercept.c        2018-06-18 19:43:27.059968542 +0200
+@@ -1365,7 +1365,11 @@
+               /* Only for fo devices */
+               /* This 'if' must match the one above in create unique */
+ #if LINUX_VERSION_CODE >= KERNEL_VERSION(4,11,0)
++  #if LINUX_VERSION_CODE >= KERNEL_VERSION(4,17,0)
++              sdev->request_queue = blk_alloc_queue_node(GFP_KERNEL, NUMA_NO_NODE, NULL);
++  #else
+               sdev->request_queue = blk_alloc_queue_node(GFP_KERNEL, NUMA_NO_NODE);
++  #endif
+               __scsi_init_queue(sdev->host, sdev->request_queue);
+ #else
+               sdev->request_queue = __scsi_alloc_queue(sdev->host, NULL);
This page took 0.604604 seconds and 4 git commands to generate.