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
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;
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
18 req->cmd_type = REQ_TYPE_BLOCK_PC;
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;
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
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;
36 pfo_cmd.flags = flags | RQF_QUIET;
38 pfo_cmd.cmd_len = hdr->cmd_len;
39 pfo_cmd.buffer = NULL;
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;
45 pfo_cmd.flags = RQF_QUIET;
47 pfo_cmd.cmd_len = hdr->cmd_len;
48 pfo_cmd.buffer = NULL;
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;
54 pfo_cmd.flags = RQF_QUIET;
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;
63 pfo_cmd.flags = RQF_QUIET;
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;
72 pfo_cmd.flags = RQF_QUIET;
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;
81 pfo_cmd.flags = RQF_QUIET;