summarylogtreecommitdiffstats
path: root/kernel-5.6.patch
diff options
context:
space:
mode:
authorTomasz Maciej Nowak2020-05-30 02:03:37 +0200
committerTomasz Maciej Nowak2020-05-30 15:31:29 +0200
commitc6529c3654164af8672d4e7e27eb10f92e612d1f (patch)
tree607b13c3439eff654fd70e46484dd30640dc8a31 /kernel-5.6.patch
parentbbf06bcaf7581d091becf03d2b985c6e426ee7e5 (diff)
downloadaur-c6529c3654164af8672d4e7e27eb10f92e612d1f.tar.gz
upgpkg: vtunerc-dkms 1.4-10
fix compilation error with 5.6 kernel and warning with 5.3 kernel
Diffstat (limited to 'kernel-5.6.patch')
-rw-r--r--kernel-5.6.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/kernel-5.6.patch b/kernel-5.6.patch
new file mode 100644
index 00000000000..1c789e39be2
--- /dev/null
+++ b/kernel-5.6.patch
@@ -0,0 +1,29 @@
+https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=d56c0d45f0e27f814e87a1676b6bdccccbc252e9
+--- 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",