diff options
author | Steven Noonan <steven@uplinklabs.net> | 2008-09-20 04:00:38 -0400 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-10-14 04:38:01 -0400 |
commit | 8925b394eca0bb0a444a6487d702d0f650e94a10 (patch) | |
tree | 855a9f3ba8f6e74eaf0301898d79619077fa9b8d /kernel/trace | |
parent | 71c67d58b5660f8e42c7d4c3e77cbc03fac5ed31 (diff) |
trace: remove pointless ifdefs
The functions are already 'extern' anyway, so there's no problem
with linkage. Removing these ifdefs also helps find any potential
compiler errors.
Suggested by Andrew Morton.
Signed-off-by: Steven Noonan <steven@uplinklabs.net>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/trace')
-rw-r--r-- | kernel/trace/trace.h | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/kernel/trace/trace.h b/kernel/trace/trace.h index 447d4b9b6391..c8c687088b4d 100644 --- a/kernel/trace/trace.h +++ b/kernel/trace/trace.h | |||
@@ -319,38 +319,22 @@ extern int DYN_FTRACE_TEST_NAME(void); | |||
319 | #endif | 319 | #endif |
320 | 320 | ||
321 | #ifdef CONFIG_FTRACE_STARTUP_TEST | 321 | #ifdef CONFIG_FTRACE_STARTUP_TEST |
322 | #ifdef CONFIG_FTRACE | ||
323 | extern int trace_selftest_startup_function(struct tracer *trace, | 322 | extern int trace_selftest_startup_function(struct tracer *trace, |
324 | struct trace_array *tr); | 323 | struct trace_array *tr); |
325 | #endif | ||
326 | #ifdef CONFIG_IRQSOFF_TRACER | ||
327 | extern int trace_selftest_startup_irqsoff(struct tracer *trace, | 324 | extern int trace_selftest_startup_irqsoff(struct tracer *trace, |
328 | struct trace_array *tr); | 325 | struct trace_array *tr); |
329 | #endif | ||
330 | #ifdef CONFIG_PREEMPT_TRACER | ||
331 | extern int trace_selftest_startup_preemptoff(struct tracer *trace, | 326 | extern int trace_selftest_startup_preemptoff(struct tracer *trace, |
332 | struct trace_array *tr); | 327 | struct trace_array *tr); |
333 | #endif | ||
334 | #if defined(CONFIG_IRQSOFF_TRACER) && defined(CONFIG_PREEMPT_TRACER) | ||
335 | extern int trace_selftest_startup_preemptirqsoff(struct tracer *trace, | 328 | extern int trace_selftest_startup_preemptirqsoff(struct tracer *trace, |
336 | struct trace_array *tr); | 329 | struct trace_array *tr); |
337 | #endif | ||
338 | #ifdef CONFIG_SCHED_TRACER | ||
339 | extern int trace_selftest_startup_wakeup(struct tracer *trace, | 330 | extern int trace_selftest_startup_wakeup(struct tracer *trace, |
340 | struct trace_array *tr); | 331 | struct trace_array *tr); |
341 | #endif | ||
342 | #ifdef CONFIG_NOP_TRACER | ||
343 | extern int trace_selftest_startup_nop(struct tracer *trace, | 332 | extern int trace_selftest_startup_nop(struct tracer *trace, |
344 | struct trace_array *tr); | 333 | struct trace_array *tr); |
345 | #endif | ||
346 | #ifdef CONFIG_CONTEXT_SWITCH_TRACER | ||
347 | extern int trace_selftest_startup_sched_switch(struct tracer *trace, | 334 | extern int trace_selftest_startup_sched_switch(struct tracer *trace, |
348 | struct trace_array *tr); | 335 | struct trace_array *tr); |
349 | #endif | ||
350 | #ifdef CONFIG_SYSPROF_TRACER | ||
351 | extern int trace_selftest_startup_sysprof(struct tracer *trace, | 336 | extern int trace_selftest_startup_sysprof(struct tracer *trace, |
352 | struct trace_array *tr); | 337 | struct trace_array *tr); |
353 | #endif | ||
354 | #endif /* CONFIG_FTRACE_STARTUP_TEST */ | 338 | #endif /* CONFIG_FTRACE_STARTUP_TEST */ |
355 | 339 | ||
356 | extern void *head_page(struct trace_array_cpu *data); | 340 | extern void *head_page(struct trace_array_cpu *data); |