aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--kernel/extable.c14
-rw-r--r--kernel/trace/ring_buffer.c8
-rw-r--r--mm/memory.c8
3 files changed, 16 insertions, 14 deletions
diff --git a/kernel/extable.c b/kernel/extable.c
index 0df6253730be..25d39b0c3a1b 100644
--- a/kernel/extable.c
+++ b/kernel/extable.c
@@ -15,11 +15,21 @@
15 along with this program; if not, write to the Free Software 15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 16 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17*/ 17*/
18#include <linux/ftrace.h>
18#include <linux/module.h> 19#include <linux/module.h>
20#include <linux/mutex.h>
19#include <linux/init.h> 21#include <linux/init.h>
20#include <linux/ftrace.h> 22
21#include <asm/uaccess.h>
22#include <asm/sections.h> 23#include <asm/sections.h>
24#include <asm/uaccess.h>
25
26/*
27 * mutex protecting text section modification (dynamic code patching).
28 * some users need to sleep (allocating memory...) while they hold this lock.
29 *
30 * NOT exported to modules - patching kernel text is a really delicate matter.
31 */
32DEFINE_MUTEX(text_mutex);
23 33
24extern struct exception_table_entry __start___ex_table[]; 34extern struct exception_table_entry __start___ex_table[];
25extern struct exception_table_entry __stop___ex_table[]; 35extern struct exception_table_entry __stop___ex_table[];
diff --git a/kernel/trace/ring_buffer.c b/kernel/trace/ring_buffer.c
index 384ca5d9d729..808b14bbf076 100644
--- a/kernel/trace/ring_buffer.c
+++ b/kernel/trace/ring_buffer.c
@@ -535,8 +535,8 @@ static void rb_free_cpu_buffer(struct ring_buffer_per_cpu *cpu_buffer)
535extern int ring_buffer_page_too_big(void); 535extern int ring_buffer_page_too_big(void);
536 536
537#ifdef CONFIG_HOTPLUG_CPU 537#ifdef CONFIG_HOTPLUG_CPU
538static int __cpuinit rb_cpu_notify(struct notifier_block *self, 538static int rb_cpu_notify(struct notifier_block *self,
539 unsigned long action, void *hcpu); 539 unsigned long action, void *hcpu);
540#endif 540#endif
541 541
542/** 542/**
@@ -2784,8 +2784,8 @@ static __init int rb_init_debugfs(void)
2784fs_initcall(rb_init_debugfs); 2784fs_initcall(rb_init_debugfs);
2785 2785
2786#ifdef CONFIG_HOTPLUG_CPU 2786#ifdef CONFIG_HOTPLUG_CPU
2787static int __cpuinit rb_cpu_notify(struct notifier_block *self, 2787static int rb_cpu_notify(struct notifier_block *self,
2788 unsigned long action, void *hcpu) 2788 unsigned long action, void *hcpu)
2789{ 2789{
2790 struct ring_buffer *buffer = 2790 struct ring_buffer *buffer =
2791 container_of(self, struct ring_buffer, cpu_notify); 2791 container_of(self, struct ring_buffer, cpu_notify);
diff --git a/mm/memory.c b/mm/memory.c
index 05fab3bc5b4b..dfc9e4ea4e8b 100644
--- a/mm/memory.c
+++ b/mm/memory.c
@@ -101,14 +101,6 @@ int randomize_va_space __read_mostly =
101 2; 101 2;
102#endif 102#endif
103 103
104/*
105 * mutex protecting text section modification (dynamic code patching).
106 * some users need to sleep (allocating memory...) while they hold this lock.
107 *
108 * NOT exported to modules - patching kernel text is a really delicate matter.
109 */
110DEFINE_MUTEX(text_mutex);
111
112static int __init disable_randmaps(char *s) 104static int __init disable_randmaps(char *s)
113{ 105{
114 randomize_va_space = 0; 106 randomize_va_space = 0;