projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
43dd61c
)
ftrace: Fix warning when CONFIG_FUNCTION_TRACER is not defined
author
Steven Rostedt
<srostedt@redhat.com>
Mon, 11 Jul 2011 14:12:59 +0000
(10:12 -0400)
committer
Steven Rostedt
<rostedt@goodmis.org>
Mon, 11 Jul 2011 14:12:59 +0000
(10:12 -0400)
The struct ftrace_hash was declared within CONFIG_FUNCTION_TRACER
but was referenced outside of it.
Reported-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
include/linux/ftrace.h
patch
|
blob
|
blame
|
history
diff --git
a/include/linux/ftrace.h
b/include/linux/ftrace.h
index ed0eb5254d1cd5e06514cc51dd0e33a09b893952..f0c0e8a47ae61f67ed0bbf5b3f723acfdc5df435 100644
(file)
--- a/
include/linux/ftrace.h
+++ b/
include/linux/ftrace.h
@@
-19,6
+19,8
@@
#include <asm/ftrace.h>
+struct ftrace_hash;
+
#ifdef CONFIG_FUNCTION_TRACER
extern int ftrace_enabled;
@@
-29,8
+31,6
@@
ftrace_enable_sysctl(struct ctl_table *table, int write,
typedef void (*ftrace_func_t)(unsigned long ip, unsigned long parent_ip);
-struct ftrace_hash;
-
enum {
FTRACE_OPS_FL_ENABLED = 1 << 0,
FTRACE_OPS_FL_GLOBAL = 1 << 1,