1 diff -ur lin_tape-3.0.56/lin_tape_scsi_config.h lin_tape-3.0.56-5.12/lin_tape_scsi_config.h
2 --- lin_tape-3.0.56/lin_tape_scsi_config.h 2021-05-03 22:17:53.707525951 +0200
3 +++ lin_tape-3.0.56-5.12/lin_tape_scsi_config.h 2021-05-03 22:16:45.960370794 +0200
6 return single_open(file, tape_read_proc, NULL);
8 +#if LINUX_VERSION_CODE < KERNEL_VERSION(5,10,0)
9 static struct file_operations tape_proc_ops = {
11 .open = tape_open_proc,
14 .release = single_release,
17 +static struct proc_ops tape_proc_ops = {
18 + .proc_open = tape_open_proc,
19 + .proc_read = seq_read,
20 + .proc_lseek = seq_lseek,
21 + .proc_release = single_release,
29 return single_open(file, changer_read_proc, NULL);
31 +#if LINUX_VERSION_CODE < KERNEL_VERSION(5,10,0)
32 static struct file_operations changer_proc_ops = {
34 .open = changer_open_proc,
37 .release = single_release,
40 +static struct proc_ops changer_proc_ops = {
41 + .proc_open = changer_open_proc,
42 + .proc_read = seq_read,
43 + .proc_lseek = seq_lseek,
44 + .proc_release = single_release,
49 static int status_read_proc
52 return single_open(file, status_read_proc, NULL);
54 +#if LINUX_VERSION_CODE < KERNEL_VERSION(5,10,0)
55 static struct file_operations status_proc_ops = {
57 .open = status_open_proc,
60 .release = single_release,
63 +static struct proc_ops status_proc_ops = {
64 + .proc_open = status_open_proc,
65 + .proc_read = seq_read,
66 + .proc_lseek = seq_lseek,
67 + .proc_release = single_release,
72 int rdstatus_pc_initial
73 (pfo_cmd->source != PFO_SOURCE_EXEC)) {