]> git.pld-linux.org Git - packages/lin_tape.git/blobdiff - linux-4.13.patch
- fix building with kernel 4.13
[packages/lin_tape.git] / linux-4.13.patch
diff --git a/linux-4.13.patch b/linux-4.13.patch
new file mode 100644 (file)
index 0000000..e8228d3
--- /dev/null
@@ -0,0 +1,28 @@
+--- lin_tape-3.0.20/lin_tape_ioctl_tape.c~     2017-09-16 10:27:48.000000000 +0200
++++ lin_tape-3.0.20/lin_tape_ioctl_tape.c      2017-09-16 10:31:03.642711575 +0200
+@@ -6465,7 +6465,11 @@
+       tmp_rq = (void*)sdev->request_queue;
+ #if LINUX_VERSION_CODE >= KERNEL_VERSION(4,11,0)
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,13,0)
++      scsi_req_init(scsi_req(req));
++#else
+       scsi_req_init(req);
++#endif
+ #else
+       req->cmd_type = REQ_TYPE_BLOCK_PC;
+ #endif
+--- lin_tape-3.0.20/lower.c~   2017-09-16 10:27:48.000000000 +0200
++++ lin_tape-3.0.20/lower.c    2017-09-16 10:32:08.377461388 +0200
+@@ -470,7 +470,11 @@
+       }
+ #if LINUX_VERSION_CODE >= KERNEL_VERSION(4,11,0)
++#if LINUX_VERSION_CODE >= KERNEL_VERSION(4,11,0)
++      scsi_req_init(scsi_req(rq));
++#else
+       scsi_req_init(rq);
++#endif
+ #else
+       rq->cmd_type = REQ_TYPE_BLOCK_PC;
+ #endif
This page took 0.04407 seconds and 4 git commands to generate.