]> git.pld-linux.org Git - packages/lin_tape.git/blob - kernel-4.19.patch
- rel 3
[packages/lin_tape.git] / kernel-4.19.patch
1 --- lin_tape-3.0.33/lower.c.orig        2018-10-27 12:12:06.000000000 +0200
2 +++ lin_tape-3.0.33/lower.c     2018-10-27 14:11:03.207396481 +0200
3 @@ -276,8 +276,13 @@
4                         pfo_cmd->bufflen, local_raw_sense, pfo_cmd->timeout,
5                         pfo_cmd->retries, pfo_cmd->flags, &pfo_cmd->resid_len);
6  #else
7 +#if LINUX_VERSION_CODE < KERNEL_VERSION(4,19,0)
8                         pfo_cmd->bufflen, local_raw_sense, &local_sense_data, pfo_cmd->timeout,
9                         pfo_cmd->retries, pfo_cmd->flags, 0, &pfo_cmd->resid_len);
10 +#else
11 +                       pfo_cmd->bufflen, NULL, &local_sense_data, pfo_cmd->timeout,
12 +                       pfo_cmd->retries, pfo_cmd->flags, 0, &pfo_cmd->resid_len);
13 +#endif
14  #endif
15         } else {
16                 /* SCSI Command from user space */
17 @@ -291,8 +296,12 @@
18         scsi_device_put(sdev);
19         unlock_apfo_path(path_num);
20  
21 +#if LINUX_VERSION_CODE < KERNEL_VERSION(4,19,0)
22         valid_sense = scsi_normalize_sense(local_raw_sense,
23                                 SCSI_SENSE_BUFFERSIZE, &local_sense_data);
24 +#else
25 +       valid_sense = scsi_sense_valid(&local_sense_data);
26 +#endif
27         /* Put the SCSI command results in the structure */
28         pfo_cmd->errors = result;
29         pfo_cmd->scsi_status_code = result & 0xff;
This page took 0.088486 seconds and 3 git commands to generate.