aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/net/udp.h1
-rw-r--r--net/ipv4/udp.c5
-rw-r--r--net/ipv4/udplite.c4
-rw-r--r--net/ipv6/udp.c4
-rw-r--r--net/ipv6/udplite.c4
5 files changed, 12 insertions, 6 deletions
diff --git a/include/net/udp.h b/include/net/udp.h
index 5cf0e593dda7..24a41fa31641 100644
--- a/include/net/udp.h
+++ b/include/net/udp.h
@@ -185,7 +185,6 @@ DECLARE_SNMP_STAT(struct udp_mib, udplite_stats_in6);
185 185
186/* /proc */ 186/* /proc */
187struct udp_seq_afinfo { 187struct udp_seq_afinfo {
188 struct module *owner;
189 char *name; 188 char *name;
190 sa_family_t family; 189 sa_family_t family;
191 struct hlist_head *hashtable; 190 struct hlist_head *hashtable;
diff --git a/net/ipv4/udp.c b/net/ipv4/udp.c
index a95dff8063a4..9143645f9a1b 100644
--- a/net/ipv4/udp.c
+++ b/net/ipv4/udp.c
@@ -1596,7 +1596,6 @@ int udp_proc_register(struct net *net, struct udp_seq_afinfo *afinfo)
1596 struct proc_dir_entry *p; 1596 struct proc_dir_entry *p;
1597 int rc = 0; 1597 int rc = 0;
1598 1598
1599 afinfo->seq_fops.owner = afinfo->owner;
1600 afinfo->seq_fops.open = udp_seq_open; 1599 afinfo->seq_fops.open = udp_seq_open;
1601 afinfo->seq_fops.read = seq_read; 1600 afinfo->seq_fops.read = seq_read;
1602 afinfo->seq_fops.llseek = seq_lseek; 1601 afinfo->seq_fops.llseek = seq_lseek;
@@ -1656,10 +1655,12 @@ int udp4_seq_show(struct seq_file *seq, void *v)
1656 1655
1657/* ------------------------------------------------------------------------ */ 1656/* ------------------------------------------------------------------------ */
1658static struct udp_seq_afinfo udp4_seq_afinfo = { 1657static struct udp_seq_afinfo udp4_seq_afinfo = {
1659 .owner = THIS_MODULE,
1660 .name = "udp", 1658 .name = "udp",
1661 .family = AF_INET, 1659 .family = AF_INET,
1662 .hashtable = udp_hash, 1660 .hashtable = udp_hash,
1661 .seq_fops = {
1662 .owner = THIS_MODULE,
1663 },
1663 .seq_ops = { 1664 .seq_ops = {
1664 .show = udp4_seq_show, 1665 .show = udp4_seq_show,
1665 }, 1666 },
diff --git a/net/ipv4/udplite.c b/net/ipv4/udplite.c
index 148ae72af111..72ce26b6c4d3 100644
--- a/net/ipv4/udplite.c
+++ b/net/ipv4/udplite.c
@@ -72,10 +72,12 @@ static struct inet_protosw udplite4_protosw = {
72 72
73#ifdef CONFIG_PROC_FS 73#ifdef CONFIG_PROC_FS
74static struct udp_seq_afinfo udplite4_seq_afinfo = { 74static struct udp_seq_afinfo udplite4_seq_afinfo = {
75 .owner = THIS_MODULE,
76 .name = "udplite", 75 .name = "udplite",
77 .family = AF_INET, 76 .family = AF_INET,
78 .hashtable = udplite_hash, 77 .hashtable = udplite_hash,
78 .seq_fops = {
79 .owner = THIS_MODULE,
80 },
79 .seq_ops = { 81 .seq_ops = {
80 .show = udp4_seq_show, 82 .show = udp4_seq_show,
81 }, 83 },
diff --git a/net/ipv6/udp.c b/net/ipv6/udp.c
index ff8d53ecdd60..30ef7dc5d403 100644
--- a/net/ipv6/udp.c
+++ b/net/ipv6/udp.c
@@ -978,10 +978,12 @@ int udp6_seq_show(struct seq_file *seq, void *v)
978} 978}
979 979
980static struct udp_seq_afinfo udp6_seq_afinfo = { 980static struct udp_seq_afinfo udp6_seq_afinfo = {
981 .owner = THIS_MODULE,
982 .name = "udp6", 981 .name = "udp6",
983 .family = AF_INET6, 982 .family = AF_INET6,
984 .hashtable = udp_hash, 983 .hashtable = udp_hash,
984 .seq_fops = {
985 .owner = THIS_MODULE,
986 },
985 .seq_ops = { 987 .seq_ops = {
986 .show = udp6_seq_show, 988 .show = udp6_seq_show,
987 }, 989 },
diff --git a/net/ipv6/udplite.c b/net/ipv6/udplite.c
index 5adf651d0721..491efd00a866 100644
--- a/net/ipv6/udplite.c
+++ b/net/ipv6/udplite.c
@@ -97,10 +97,12 @@ void udplitev6_exit(void)
97 97
98#ifdef CONFIG_PROC_FS 98#ifdef CONFIG_PROC_FS
99static struct udp_seq_afinfo udplite6_seq_afinfo = { 99static struct udp_seq_afinfo udplite6_seq_afinfo = {
100 .owner = THIS_MODULE,
101 .name = "udplite6", 100 .name = "udplite6",
102 .family = AF_INET6, 101 .family = AF_INET6,
103 .hashtable = udplite_hash, 102 .hashtable = udplite_hash,
103 .seq_fops = {
104 .owner = THIS_MODULE,
105 },
104 .seq_ops = { 106 .seq_ops = {
105 .show = udp6_seq_show, 107 .show = udp6_seq_show,
106 }, 108 },