]> git.pld-linux.org Git - packages/lin_tape.git/blob - linux-4.10.patch
- fix building with kernel 4.17
[packages/lin_tape.git] / linux-4.10.patch
1 diff -ur lin_tape-3.0.23/lin_tape_ioctl_tape.c lin_tape-3.0.23-4.10/lin_tape_ioctl_tape.c
2 --- lin_tape-3.0.23/lin_tape_ioctl_tape.c       2018-04-08 00:40:34.811170201 +0200
3 +++ lin_tape-3.0.23-4.10/lin_tape_ioctl_tape.c  2018-04-08 00:39:08.512197099 +0200
4 @@ -6471,7 +6471,7 @@
5  
6         tmp_rq = (void*)sdev->request_queue;
7         req->cmd_type = REQ_TYPE_BLOCK_PC;
8 -#if LINUX_VERSION_CODE < KERNEL_VERSION(4,4,73)
9 +#if LINUX_VERSION_CODE < KERNEL_VERSION(4,10,0)
10         req->cmd_flags |= REQ_QUIET;
11  #else
12         req->cmd_flags |= RQF_QUIET;
13 diff -ur lin_tape-3.0.23/stmp.c lin_tape-3.0.23-4.10/stmp.c
14 --- lin_tape-3.0.23/stmp.c      2018-04-08 00:40:34.814503623 +0200
15 +++ lin_tape-3.0.23-4.10/stmp.c 2018-04-08 00:39:45.023173000 +0200
16 @@ -688,7 +688,7 @@
17  #else
18         req->cmd_type = REQ_TYPE_BLOCK_PC;
19  #endif
20 -#if LINUX_VERSION_CODE < KERNEL_VERSION(4,4,73)
21 +#if LINUX_VERSION_CODE < KERNEL_VERSION(4,10,0)
22         req->cmd_flags |= REQ_QUIET;
23  #else
24         req->cmd_flags |= RQF_QUIET;
25 diff -ur lin_tape-3.0.23/upper.c lin_tape-3.0.23-4.10/upper.c
26 --- lin_tape-3.0.23/upper.c     2018-04-08 00:40:34.814503623 +0200
27 +++ lin_tape-3.0.23-4.10/upper.c        2018-04-08 00:40:20.187446091 +0200
28 @@ -89,7 +89,7 @@
29         pfo_cmd.timeout = timeout;
30         pfo_cmd.retries = retries;
31         pfo_cmd.iov_count = 0;
32 -#if LINUX_VERSION_CODE < KERNEL_VERSION(4,4,73)
33 +#if LINUX_VERSION_CODE < KERNEL_VERSION(4,10,0)
34         pfo_cmd.flags = flags | REQ_QUIET;
35  #else
36         pfo_cmd.flags = flags | RQF_QUIET;
37 @@ -352,7 +352,7 @@
38         pfo_cmd.cmd_len = hdr->cmd_len;
39         pfo_cmd.buffer = NULL;
40         pfo_cmd.bufflen = 0;
41 -#if LINUX_VERSION_CODE < KERNEL_VERSION(4,4,73)
42 +#if LINUX_VERSION_CODE < KERNEL_VERSION(4,10,0)
43         pfo_cmd.flags = REQ_QUIET;
44  #else
45         pfo_cmd.flags = RQF_QUIET;
46 @@ -488,7 +488,7 @@
47         pfo_cmd.cmd_len = hdr->cmd_len;
48         pfo_cmd.buffer = NULL;
49         pfo_cmd.bufflen = 0;
50 -#if LINUX_VERSION_CODE < KERNEL_VERSION(4,4,73)
51 +#if LINUX_VERSION_CODE < KERNEL_VERSION(4,10,0)
52         pfo_cmd.flags = REQ_QUIET;
53  #else
54         pfo_cmd.flags = RQF_QUIET;
55 @@ -691,7 +691,7 @@
56         pfo_cmd.timeout = timeout;
57         pfo_cmd.retries = retries;
58         pfo_cmd.iov_count = 0;
59 -#if LINUX_VERSION_CODE < KERNEL_VERSION(4,4,73)
60 +#if LINUX_VERSION_CODE < KERNEL_VERSION(4,10,0)
61         pfo_cmd.flags = REQ_QUIET;
62  #else
63         pfo_cmd.flags = RQF_QUIET;
64 @@ -952,7 +952,7 @@
65         pfo_cmd.buffer = buffer;
66         pfo_cmd.bufflen = bufflen;
67         pfo_cmd.retries = retries;
68 -#if LINUX_VERSION_CODE < KERNEL_VERSION(4,4,73)
69 +#if LINUX_VERSION_CODE < KERNEL_VERSION(4,10,0)
70         pfo_cmd.flags = REQ_QUIET;
71  #else
72         pfo_cmd.flags = RQF_QUIET;
73 @@ -995,7 +995,7 @@
74         pfo_cmd.buffer = buffer;
75         pfo_cmd.bufflen = bufflen;
76         pfo_cmd.retries = retries;
77 -#if LINUX_VERSION_CODE < KERNEL_VERSION(4,4,73)
78 +#if LINUX_VERSION_CODE < KERNEL_VERSION(4,10,0)
79         pfo_cmd.flags = REQ_QUIET;
80  #else
81         pfo_cmd.flags = RQF_QUIET;
This page took 0.062672 seconds and 3 git commands to generate.