]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - net/ipx/ipx_proc.c
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
[linux-2.6-omap-h63xx.git] / net / ipx / ipx_proc.c
index db32ac8e79bd6ed5b9e7b7b84f6aa67bfafcfead..d483a00dc427994abf293771391b28a4194c8b03 100644 (file)
@@ -9,6 +9,7 @@
 #include <linux/proc_fs.h>
 #include <linux/spinlock.h>
 #include <linux/seq_file.h>
+#include <net/net_namespace.h>
 #include <net/tcp_states.h>
 #include <net/ipx.h>
 
@@ -286,21 +287,21 @@ out:
        return 0;
 }
 
-static struct seq_operations ipx_seq_interface_ops = {
+static const struct seq_operations ipx_seq_interface_ops = {
        .start  = ipx_seq_interface_start,
        .next   = ipx_seq_interface_next,
        .stop   = ipx_seq_interface_stop,
        .show   = ipx_seq_interface_show,
 };
 
-static struct seq_operations ipx_seq_route_ops = {
+static const struct seq_operations ipx_seq_route_ops = {
        .start  = ipx_seq_route_start,
        .next   = ipx_seq_route_next,
        .stop   = ipx_seq_route_stop,
        .show   = ipx_seq_route_show,
 };
 
-static struct seq_operations ipx_seq_socket_ops = {
+static const struct seq_operations ipx_seq_socket_ops = {
        .start  = ipx_seq_socket_start,
        .next   = ipx_seq_socket_next,
        .stop   = ipx_seq_interface_stop,
@@ -353,7 +354,7 @@ int __init ipx_proc_init(void)
        struct proc_dir_entry *p;
        int rc = -ENOMEM;
 
-       ipx_proc_dir = proc_mkdir("ipx", proc_net);
+       ipx_proc_dir = proc_mkdir("ipx", init_net.proc_net);
 
        if (!ipx_proc_dir)
                goto out;
@@ -381,7 +382,7 @@ out_socket:
 out_route:
        remove_proc_entry("interface", ipx_proc_dir);
 out_interface:
-       remove_proc_entry("ipx", proc_net);
+       remove_proc_entry("ipx", init_net.proc_net);
        goto out;
 }
 
@@ -390,7 +391,7 @@ void __exit ipx_proc_exit(void)
        remove_proc_entry("interface", ipx_proc_dir);
        remove_proc_entry("route", ipx_proc_dir);
        remove_proc_entry("socket", ipx_proc_dir);
-       remove_proc_entry("ipx", proc_net);
+       remove_proc_entry("ipx", init_net.proc_net);
 }
 
 #else /* CONFIG_PROC_FS */