kernel: do not strip /proc/net/ip_mr_* in the /proc debloat patch, it is used by iproute2

Signed-off-by: Felix Fietkau <nbd@openwrt.org>

SVN-Revision: 36529
owl
Felix Fietkau 2013-05-02 15:59:57 +00:00
parent 24636fcabf
commit 30c4360345
4 changed files with 0 additions and 52 deletions

View File

@ -266,19 +266,6 @@
return register_pernet_subsys(&igmp_net_ops);
}
#endif
--- a/net/ipv4/ipmr.c
+++ b/net/ipv4/ipmr.c
@@ -70,6 +70,10 @@
#define CONFIG_IP_PIMSM 1
#endif
+#ifdef CONFIG_PROC_STRIPPED
+#undef CONFIG_PROC_FS
+#endif
+
struct mr_table {
struct list_head list;
#ifdef CONFIG_NET_NS
--- a/net/ipv4/proc.c
+++ b/net/ipv4/proc.c
@@ -498,6 +498,9 @@ static __net_initdata struct pernet_oper

View File

@ -266,19 +266,6 @@
return register_pernet_subsys(&igmp_net_ops);
}
#endif
--- a/net/ipv4/ipmr.c
+++ b/net/ipv4/ipmr.c
@@ -70,6 +70,10 @@
#define CONFIG_IP_PIMSM 1
#endif
+#ifdef CONFIG_PROC_STRIPPED
+#undef CONFIG_PROC_FS
+#endif
+
struct mr_table {
struct list_head list;
#ifdef CONFIG_NET_NS
--- a/net/ipv4/proc.c
+++ b/net/ipv4/proc.c
@@ -502,6 +502,9 @@ static __net_initdata struct pernet_oper

View File

@ -255,19 +255,6 @@
proc_net_remove(net, "route");
}
--- a/net/ipv4/ipmr.c
+++ b/net/ipv4/ipmr.c
@@ -71,6 +71,10 @@
#define CONFIG_IP_PIMSM 1
#endif
+#ifdef CONFIG_PROC_STRIPPED
+#undef CONFIG_PROC_FS
+#endif
+
struct mr_table {
struct list_head list;
#ifdef CONFIG_NET_NS
--- a/net/ipv4/proc.c
+++ b/net/ipv4/proc.c
@@ -502,6 +502,9 @@ static __net_initdata struct pernet_oper

View File

@ -225,19 +225,6 @@
remove_proc_entry("route", net->proc_net);
}
--- a/net/ipv4/ipmr.c
+++ b/net/ipv4/ipmr.c
@@ -71,6 +71,10 @@
#define CONFIG_IP_PIMSM 1
#endif
+#ifdef CONFIG_PROC_STRIPPED
+#undef CONFIG_PROC_FS
+#endif
+
struct mr_table {
struct list_head list;
#ifdef CONFIG_NET_NS
--- a/net/ipv4/proc.c
+++ b/net/ipv4/proc.c
@@ -503,6 +503,9 @@ static __net_initdata struct pernet_oper