]> git.pld-linux.org Git - packages/xtables-addons.git/blame - kernel-5.17.patch
- up to 3.19
[packages/xtables-addons.git] / kernel-5.17.patch
CommitLineData
2ec4ecbe
JR
1--- xtables-addons-3.19/extensions/pknock/xt_pknock.c~ 2022-02-01 18:24:03.000000000 +0100
2+++ xtables-addons-3.19/extensions/pknock/xt_pknock.c 2022-04-02 13:22:18.309078729 +0200
3@@ -277,7 +277,11 @@
4 int ret = seq_open(file, &pknock_seq_ops);
5 if (ret == 0) {
6 struct seq_file *sf = file->private_data;
7+#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 17, 0)
8 sf->private = PDE_DATA(inode);
9+#else
10+ sf->private = pde_data(inode);
11+#endif
12 }
13 return ret;
14 }
15--- xtables-addons-3.19/extensions/xt_condition.c~ 2022-02-01 18:24:03.000000000 +0100
16+++ xtables-addons-3.19/extensions/xt_condition.c 2022-04-02 13:25:17.366962445 +0200
17@@ -83,14 +83,22 @@
18
19 static int condition_proc_open(struct inode *inode, struct file *file)
20 {
21+#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 17, 0)
22 return single_open(file, condition_proc_show, PDE_DATA(inode));
23+#else
24+ return single_open(file, condition_proc_show, pde_data(inode));
25+#endif
26 }
27
28 static ssize_t
29 condition_proc_write(struct file *file, const char __user *buffer,
30 size_t length, loff_t *loff)
31 {
32+#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 17, 0)
33 struct condition_variable *var = PDE_DATA(file_inode(file));
34+#else
35+ struct condition_variable *var = pde_data(file_inode(file));
36+#endif
37 char newval;
38
39 if (length > 0) {
40--- xtables-addons-3.19/extensions/xt_quota2.c~ 2022-02-01 18:24:03.000000000 +0100
41+++ xtables-addons-3.19/extensions/xt_quota2.c 2022-04-02 13:26:27.276139534 +0200
42@@ -73,14 +73,22 @@
43
44 static int quota_proc_open(struct inode *inode, struct file *file)
45 {
46+#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 17, 0)
47 return single_open(file, quota_proc_show, PDE_DATA(inode));
48+#else
49+ return single_open(file, quota_proc_show, pde_data(inode));
50+#endif
51 }
52
53 static ssize_t
54 quota_proc_write(struct file *file, const char __user *input,
55 size_t size, loff_t *loff)
56 {
57+#if LINUX_VERSION_CODE < KERNEL_VERSION(5, 17, 0)
58 struct xt_quota_counter *e = PDE_DATA(file_inode(file));
59+#else
60+ struct xt_quota_counter *e = pde_data(file_inode(file));
61+#endif
62 char buf[sizeof("+-18446744073709551616")];
63
64 if (size > sizeof(buf))
This page took 0.064346 seconds and 4 git commands to generate.