1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
From 329863379978c78e895dc4028bbc6e6019b4783a Mon Sep 17 00:00:00 2001
From: Tomasz Maciej Nowak <tmn505@gmail.com>
Date: Fri, 13 May 2022 16:11:15 +0200
Subject: [PATCH 12/13] Kernel 5.6
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=d56c0d45f0e27f814e87a1676b6bdccccbc252e9
---
vtunerc_main.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/vtunerc_main.c b/vtunerc_main.c
index 4b153d9342fa..d1c7d55f1168 100644
--- a/vtunerc_main.c
+++ b/vtunerc_main.c
@@ -213,11 +213,11 @@ static int vtuner_proc_release(struct inode *inode, struct file *file)
return ret;
}
-static const struct file_operations vtunerc_read_proc_fops = {
- .open = vtunerc_proc_open,
- .read = seq_read,
- .llseek = seq_lseek,
- .release = vtuner_proc_release,
+static const struct proc_ops vtunerc_read_proc_ops = {
+ .proc_open = vtunerc_proc_open,
+ .proc_read = seq_read,
+ .proc_lseek = seq_lseek,
+ .proc_release = vtuner_proc_release,
};
#endif
@@ -333,7 +333,7 @@ static int __init vtunerc_init(void)
ctx->idx);
ctx->procname = my_strdup(procfilename);
if (proc_create_data(ctx->procname, 0, NULL,
- &vtunerc_read_proc_fops,
+ &vtunerc_read_proc_ops,
ctx) == 0)
printk(KERN_WARNING
"vtunerc%d: Unable to register '%s' proc file\n",
--
2.36.1
|