diff options
-rw-r--r-- | arch/x86/kernel/ftrace.c | 7 | ||||
-rw-r--r-- | kernel/extable.c | 4 | ||||
-rw-r--r-- | kernel/module.c | 2 |
3 files changed, 3 insertions, 10 deletions
diff --git a/arch/x86/kernel/ftrace.c b/arch/x86/kernel/ftrace.c index d74d75e0952d..18828aee8781 100644 --- a/arch/x86/kernel/ftrace.c +++ b/arch/x86/kernel/ftrace.c | |||
@@ -491,13 +491,6 @@ void prepare_ftrace_return(unsigned long *parent, unsigned long self_addr) | |||
491 | return; | 491 | return; |
492 | } | 492 | } |
493 | 493 | ||
494 | if (unlikely(!__kernel_text_address(old))) { | ||
495 | ftrace_graph_stop(); | ||
496 | *parent = old; | ||
497 | WARN_ON(1); | ||
498 | return; | ||
499 | } | ||
500 | |||
501 | calltime = cpu_clock(raw_smp_processor_id()); | 494 | calltime = cpu_clock(raw_smp_processor_id()); |
502 | 495 | ||
503 | if (push_return_trace(old, calltime, | 496 | if (push_return_trace(old, calltime, |
diff --git a/kernel/extable.c b/kernel/extable.c index e136ed8d82ba..0df6253730be 100644 --- a/kernel/extable.c +++ b/kernel/extable.c | |||
@@ -41,7 +41,7 @@ const struct exception_table_entry *search_exception_tables(unsigned long addr) | |||
41 | return e; | 41 | return e; |
42 | } | 42 | } |
43 | 43 | ||
44 | __notrace_funcgraph int core_kernel_text(unsigned long addr) | 44 | int core_kernel_text(unsigned long addr) |
45 | { | 45 | { |
46 | if (addr >= (unsigned long)_stext && | 46 | if (addr >= (unsigned long)_stext && |
47 | addr <= (unsigned long)_etext) | 47 | addr <= (unsigned long)_etext) |
@@ -54,7 +54,7 @@ __notrace_funcgraph int core_kernel_text(unsigned long addr) | |||
54 | return 0; | 54 | return 0; |
55 | } | 55 | } |
56 | 56 | ||
57 | __notrace_funcgraph int __kernel_text_address(unsigned long addr) | 57 | int __kernel_text_address(unsigned long addr) |
58 | { | 58 | { |
59 | if (core_kernel_text(addr)) | 59 | if (core_kernel_text(addr)) |
60 | return 1; | 60 | return 1; |
diff --git a/kernel/module.c b/kernel/module.c index ba22484a987e..22d7379709da 100644 --- a/kernel/module.c +++ b/kernel/module.c | |||
@@ -2735,7 +2735,7 @@ int is_module_address(unsigned long addr) | |||
2735 | 2735 | ||
2736 | 2736 | ||
2737 | /* Is this a valid kernel address? */ | 2737 | /* Is this a valid kernel address? */ |
2738 | __notrace_funcgraph struct module *__module_text_address(unsigned long addr) | 2738 | struct module *__module_text_address(unsigned long addr) |
2739 | { | 2739 | { |
2740 | struct module *mod; | 2740 | struct module *mod; |
2741 | 2741 | ||