OpenWrt

Subversion Repositories:
Compare Path: Rev
With Path: Rev
?path1? @ 2  →  ?path2? @ 3
/branches/18.06.1/target/linux/generic/hack-4.9/902-debloat_proc.patch
@@ -221,14 +221,13 @@
if (!root_irq_dir)
--- a/kernel/time/timer_list.c
+++ b/kernel/time/timer_list.c
@@ -399,6 +399,9 @@ static int __init init_timer_list_procfs
@@ -399,6 +399,8 @@ static int __init init_timer_list_procfs
{
struct proc_dir_entry *pe;
+ if (IS_ENABLED(CONFIG_PROC_STRIPPED))
+ return 0;
+
pe = proc_create("timer_list", 0400, NULL, &timer_list_fops);
pe = proc_create("timer_list", 0444, NULL, &timer_list_fops);
if (!pe)
return -ENOMEM;
--- a/mm/vmalloc.c
@@ -244,7 +243,7 @@
}
--- a/mm/vmstat.c
+++ b/mm/vmstat.c
@@ -1798,10 +1798,12 @@ static int __init setup_vmstat(void)
@@ -1796,10 +1796,12 @@ static int __init setup_vmstat(void)
cpu_notifier_register_done();
#endif
#ifdef CONFIG_PROC_FS
@@ -328,7 +327,7 @@
--- a/net/core/sock.c
+++ b/net/core/sock.c
@@ -3088,6 +3088,8 @@ static __net_initdata struct pernet_oper
@@ -3084,6 +3084,8 @@ static __net_initdata struct pernet_oper
static int __init proto_init(void)
{
@@ -339,7 +338,7 @@
--- a/net/ipv4/fib_trie.c
+++ b/net/ipv4/fib_trie.c
@@ -2677,10 +2677,12 @@ static const struct file_operations fib_
@@ -2667,10 +2667,12 @@ static const struct file_operations fib_
int __net_init fib_proc_init(struct net *net)
{
@@ -354,7 +353,7 @@
&fib_triestat_fops))
goto out2;
@@ -2690,17 +2692,21 @@ int __net_init fib_proc_init(struct net
@@ -2680,17 +2682,21 @@ int __net_init fib_proc_init(struct net
return 0;
out3:
@@ -382,7 +381,7 @@
--- a/net/ipv4/proc.c
+++ b/net/ipv4/proc.c
@@ -565,6 +565,9 @@ static __net_initdata struct pernet_oper
@@ -564,6 +564,9 @@ static __net_initdata struct pernet_oper
int __init ip_misc_proc_init(void)
{