X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=target%2Flinux%2Fgeneric%2Fpatches-4.1%2F902-debloat_proc.patch;h=ae721502fe653d62e7877dcf77207cbb750db376;hb=589206e6be629af7c7b406455b22d66bdf4e5818;hp=bf85100283c490a8ca93876c0af9a4e68f8966b5;hpb=d1ab068e19544c49679eac108c5d3910d623b5d8;p=openwrt%2Fsvn-archive%2Farchive.git diff --git a/target/linux/generic/patches-4.1/902-debloat_proc.patch b/target/linux/generic/patches-4.1/902-debloat_proc.patch index bf85100283..ae721502fe 100644 --- a/target/linux/generic/patches-4.1/902-debloat_proc.patch +++ b/target/linux/generic/patches-4.1/902-debloat_proc.patch @@ -1,6 +1,6 @@ --- a/fs/locks.c +++ b/fs/locks.c -@@ -2676,6 +2676,8 @@ static const struct file_operations proc +@@ -2674,6 +2674,8 @@ static const struct file_operations proc static int __init proc_locks_init(void) { @@ -79,17 +79,17 @@ } --- a/kernel/irq/proc.c +++ b/kernel/irq/proc.c -@@ -325,6 +325,9 @@ void register_irq_proc(unsigned int irq, - { +@@ -327,6 +327,9 @@ void register_irq_proc(unsigned int irq, + static DEFINE_MUTEX(register_lock); char name [MAX_NAMELEN]; + if (IS_ENABLED(CONFIG_PROC_STRIPPED) && !IS_ENABLED(CONFIG_SMP)) + return; + - if (!root_irq_dir || (desc->irq_data.chip == &no_irq_chip) || desc->dir) + if (!root_irq_dir || (desc->irq_data.chip == &no_irq_chip)) return; -@@ -361,6 +364,9 @@ void unregister_irq_proc(unsigned int ir +@@ -376,6 +379,9 @@ void unregister_irq_proc(unsigned int ir { char name [MAX_NAMELEN]; @@ -99,7 +99,7 @@ if (!root_irq_dir || !desc->dir) return; #ifdef CONFIG_SMP -@@ -396,6 +402,9 @@ void init_irq_proc(void) +@@ -411,6 +417,9 @@ void init_irq_proc(void) unsigned int irq; struct irq_desc *desc;