]> git.pld-linux.org Git - packages/lin_tape.git/commitdiff
- fix building with kernel 4.17 auto/th/lin_tape-3.0.23-2
authorJan Rękorajski <baggins@pld-linux.org>
Mon, 18 Jun 2018 17:47:41 +0000 (19:47 +0200)
committerJan Rękorajski <baggins@pld-linux.org>
Mon, 18 Jun 2018 17:47:41 +0000 (19:47 +0200)
- rel 2

kernel-4.17.patch [new file with mode: 0644]
lin_tape.spec

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);
index 43d1605ae317c920743a8117ff150bf4680a0642..2c13a8b816ef0a0d8c6f803ae9340482f7bb71ec 100644 (file)
@@ -5,7 +5,7 @@
 # nothing to be placed to debuginfo package
 %define                _enable_debug_packages  0
 
-%define                rel     1
+%define                rel     2
 %define                pname   lin_tape
 Summary:       IBM Tape SCSI Device Driver for Linux
 Name:          %{pname}%{_alt_kernel}
@@ -25,6 +25,7 @@ Patch5:               linux-4.12.patch
 Patch6:                linux-4.13.patch
 Patch7:                kernel-4.14.patch
 Patch8:                kernel-4.15.patch
+Patch9:                kernel-4.17.patch
 # System Storage, Tape systems, Tape drivers and software, Tape device drivers (Linux)
 URL:           http://www.ibm.com/support/fixcentral/
 BuildRequires: rpmbuild(macros) >= 1.701
@@ -81,6 +82,7 @@ compatible platforms.\
 %patch6 -p1
 %patch7 -p1
 %patch8 -p1
+%patch9 -p1
 
 install -p %{SOURCE1} .
 
This page took 0.117456 seconds and 4 git commands to generate.