diff options
author | David Howells <dhowells@redhat.com> | 2018-01-02 10:12:01 -0500 |
---|---|---|
committer | David Howells <dhowells@redhat.com> | 2018-01-17 06:30:16 -0500 |
commit | 4e7e3adbba5224604b34b0d42003ff6dbdc8ddd9 (patch) | |
tree | d4e9f829a8d07dd76319776e54cde0cb36ceb24a /include/linux/ftrace.h | |
parent | d11ed3ab3166a2bfad60681aebf3e13e1c3408a9 (diff) |
Expand various INIT_* macros and remove
Expand various INIT_* macros into the single places they're used in
init/init_task.c and remove them.
Signed-off-by: David Howells <dhowells@redhat.com>
Tested-by: Tony Luck <tony.luck@intel.com>
Tested-by: Will Deacon <will.deacon@arm.com> (arm64)
Tested-by: Palmer Dabbelt <palmer@sifive.com>
Acked-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'include/linux/ftrace.h')
-rw-r--r-- | include/linux/ftrace.h | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/include/linux/ftrace.h b/include/linux/ftrace.h index 2bab81951ced..6311f35acbc4 100644 --- a/include/linux/ftrace.h +++ b/include/linux/ftrace.h | |||
@@ -764,9 +764,6 @@ typedef int (*trace_func_graph_ent_t)(struct ftrace_graph_ent *); /* entry */ | |||
764 | 764 | ||
765 | #ifdef CONFIG_FUNCTION_GRAPH_TRACER | 765 | #ifdef CONFIG_FUNCTION_GRAPH_TRACER |
766 | 766 | ||
767 | /* for init task */ | ||
768 | #define INIT_FTRACE_GRAPH .ret_stack = NULL, | ||
769 | |||
770 | /* | 767 | /* |
771 | * Stack of return addresses for functions | 768 | * Stack of return addresses for functions |
772 | * of a thread. | 769 | * of a thread. |
@@ -844,7 +841,6 @@ static inline void unpause_graph_tracing(void) | |||
844 | #else /* !CONFIG_FUNCTION_GRAPH_TRACER */ | 841 | #else /* !CONFIG_FUNCTION_GRAPH_TRACER */ |
845 | 842 | ||
846 | #define __notrace_funcgraph | 843 | #define __notrace_funcgraph |
847 | #define INIT_FTRACE_GRAPH | ||
848 | 844 | ||
849 | static inline void ftrace_graph_init_task(struct task_struct *t) { } | 845 | static inline void ftrace_graph_init_task(struct task_struct *t) { } |
850 | static inline void ftrace_graph_exit_task(struct task_struct *t) { } | 846 | static inline void ftrace_graph_exit_task(struct task_struct *t) { } |
@@ -923,10 +919,6 @@ extern int tracepoint_printk; | |||
923 | extern void disable_trace_on_warning(void); | 919 | extern void disable_trace_on_warning(void); |
924 | extern int __disable_trace_on_warning; | 920 | extern int __disable_trace_on_warning; |
925 | 921 | ||
926 | #ifdef CONFIG_PREEMPT | ||
927 | #define INIT_TRACE_RECURSION .trace_recursion = 0, | ||
928 | #endif | ||
929 | |||
930 | int tracepoint_printk_sysctl(struct ctl_table *table, int write, | 922 | int tracepoint_printk_sysctl(struct ctl_table *table, int write, |
931 | void __user *buffer, size_t *lenp, | 923 | void __user *buffer, size_t *lenp, |
932 | loff_t *ppos); | 924 | loff_t *ppos); |
@@ -935,10 +927,6 @@ int tracepoint_printk_sysctl(struct ctl_table *table, int write, | |||
935 | static inline void disable_trace_on_warning(void) { } | 927 | static inline void disable_trace_on_warning(void) { } |
936 | #endif /* CONFIG_TRACING */ | 928 | #endif /* CONFIG_TRACING */ |
937 | 929 | ||
938 | #ifndef INIT_TRACE_RECURSION | ||
939 | #define INIT_TRACE_RECURSION | ||
940 | #endif | ||
941 | |||
942 | #ifdef CONFIG_FTRACE_SYSCALLS | 930 | #ifdef CONFIG_FTRACE_SYSCALLS |
943 | 931 | ||
944 | unsigned long arch_syscall_addr(int nr); | 932 | unsigned long arch_syscall_addr(int nr); |