aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4
diff options
context:
space:
mode:
authorDenis V. Lunev <den@openvz.org>2008-03-28 21:25:53 -0400
committerDavid S. Miller <davem@davemloft.net>2008-03-28 21:25:53 -0400
commit4ad96d39a2d74c1b2e400b602da2594f5098fc26 (patch)
tree570666522e544892feba440728a59f336e13c3dd /net/ipv4
parent3ba9441bdf07370670a684e6d95dfc523476677f (diff)
[UDP]: Remove owner from udp_seq_afinfo.
Move it to udp_seq_afinfo->seq_fops as should be. Signed-off-by: Denis V. Lunev <den@openvz.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4')
-rw-r--r--net/ipv4/udp.c5
-rw-r--r--net/ipv4/udplite.c4
2 files changed, 6 insertions, 3 deletions
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 },