kernel: keep the igmp proc support even with PROC_STRIPPED, some tools still use it
authorFelix Fietkau <nbd@openwrt.org>
Wed, 10 Apr 2013 13:45:12 +0000 (13:45 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Wed, 10 Apr 2013 13:45:12 +0000 (13:45 +0000)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 36307

target/linux/generic/patches-3.8/902-debloat_proc.patch
target/linux/generic/patches-3.9/902-debloat_proc.patch

index a9226dc3e9e5102bc8ce51531cfeb1deea57c698..650b3c2d05ee18f2a0e2244f33bddc13c3b8a934 100644 (file)
        proc_net_remove(net, "route");
  }
  
---- a/net/ipv4/igmp.c
-+++ b/net/ipv4/igmp.c
-@@ -2673,6 +2673,8 @@ static struct pernet_operations igmp_net
- int __init igmp_mc_proc_init(void)
- {
-+      if (IS_ENABLED(CONFIG_PROC_STRIPPED))
-+              return 0;
-       return register_pernet_subsys(&igmp_net_ops);
- }
- #endif
 --- a/net/ipv4/ipmr.c
 +++ b/net/ipv4/ipmr.c
 @@ -71,6 +71,10 @@
index 3d291f0a31cdad238944575f03774541e4c80174..48ad12cd931a99d37f0f14eab085efee08349034 100644 (file)
        remove_proc_entry("route", net->proc_net);
  }
  
---- a/net/ipv4/igmp.c
-+++ b/net/ipv4/igmp.c
-@@ -2674,6 +2674,8 @@ static struct pernet_operations igmp_net
- int __init igmp_mc_proc_init(void)
- {
-+      if (IS_ENABLED(CONFIG_PROC_STRIPPED))
-+              return 0;
-       return register_pernet_subsys(&igmp_net_ops);
- }
- #endif
 --- a/net/ipv4/ipmr.c
 +++ b/net/ipv4/ipmr.c
 @@ -71,6 +71,10 @@