]>
Commit | Line | Data |
---|---|---|
ced05982 JR |
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 | |
4 | @@ -220,6 +218,7 @@ | |
5 | { | |
6 | return single_open(file, tape_read_proc, NULL); | |
7 | } | |
8 | +#if LINUX_VERSION_CODE < KERNEL_VERSION(5,10,0) | |
9 | static struct file_operations tape_proc_ops = { | |
10 | .owner = THIS_MODULE, | |
11 | .open = tape_open_proc, | |
12 | @@ -227,6 +226,14 @@ | |
13 | .llseek = seq_lseek, | |
14 | .release = single_release, | |
15 | }; | |
16 | +#else | |
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, | |
22 | +}; | |
23 | +#endif | |
24 | #endif | |
25 | ||
26 | int rd_pc_initial | |
27 | @@ -252,6 +259,7 @@ | |
28 | { | |
29 | return single_open(file, changer_read_proc, NULL); | |
30 | } | |
31 | +#if LINUX_VERSION_CODE < KERNEL_VERSION(5,10,0) | |
32 | static struct file_operations changer_proc_ops = { | |
33 | .owner = THIS_MODULE, | |
34 | .open = changer_open_proc, | |
35 | @@ -259,6 +267,14 @@ | |
36 | .llseek = seq_lseek, | |
37 | .release = single_release, | |
38 | }; | |
39 | +#else | |
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, | |
45 | +}; | |
46 | +#endif | |
47 | #endif | |
48 | ||
49 | static int status_read_proc | |
50 | @@ -270,6 +286,7 @@ | |
51 | { | |
52 | return single_open(file, status_read_proc, NULL); | |
53 | } | |
54 | +#if LINUX_VERSION_CODE < KERNEL_VERSION(5,10,0) | |
55 | static struct file_operations status_proc_ops = { | |
56 | .owner = THIS_MODULE, | |
57 | .open = status_open_proc, | |
58 | @@ -277,6 +294,14 @@ | |
59 | .llseek = seq_lseek, | |
60 | .release = single_release, | |
61 | }; | |
62 | +#else | |
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, | |
68 | +}; | |
69 | +#endif | |
70 | #endif | |
71 | ||
72 | int rdstatus_pc_initial | |
73 | (pfo_cmd->source != PFO_SOURCE_EXEC)) { |