.. | .. |
---|
152 | 152 | return count; |
---|
153 | 153 | } |
---|
154 | 154 | |
---|
155 | | -static const struct file_operations alignment_proc_fops = { |
---|
156 | | - .owner = THIS_MODULE, |
---|
157 | | - .open = alignment_proc_open, |
---|
158 | | - .read = seq_read, |
---|
159 | | - .llseek = seq_lseek, |
---|
160 | | - .release = single_release, |
---|
161 | | - .write = alignment_proc_write, |
---|
| 155 | +static const struct proc_ops alignment_proc_ops = { |
---|
| 156 | + .proc_open = alignment_proc_open, |
---|
| 157 | + .proc_read = seq_read, |
---|
| 158 | + .proc_lseek = seq_lseek, |
---|
| 159 | + .proc_release = single_release, |
---|
| 160 | + .proc_write = alignment_proc_write, |
---|
162 | 161 | }; |
---|
163 | 162 | |
---|
164 | 163 | /* |
---|
.. | .. |
---|
176 | 175 | return -ENOMEM; |
---|
177 | 176 | |
---|
178 | 177 | res = proc_create_data("alignment", S_IWUSR | S_IRUGO, dir, |
---|
179 | | - &alignment_proc_fops, &se_usermode); |
---|
| 178 | + &alignment_proc_ops, &se_usermode); |
---|
180 | 179 | if (!res) |
---|
181 | 180 | return -ENOMEM; |
---|
182 | 181 | |
---|
183 | 182 | res = proc_create_data("kernel_alignment", S_IWUSR | S_IRUGO, dir, |
---|
184 | | - &alignment_proc_fops, &se_kernmode_warn); |
---|
| 183 | + &alignment_proc_ops, &se_kernmode_warn); |
---|
185 | 184 | if (!res) |
---|
186 | 185 | return -ENOMEM; |
---|
187 | 186 | |
---|