diff options
author | Ingo Molnar <mingo@elte.hu> | 2008-12-18 19:09:51 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-12-18 19:05:38 -0500 |
commit | c71dd42db2c6f1637b92502a214587431c1a6ad2 (patch) | |
tree | 778c7da5c7539cbab90cdbead19d6597529187a7 /kernel/sched.c | |
parent | 3bddb9a3246f6df5cf3b7655cb541ac10203bb71 (diff) |
tracing: fix warnings in kernel/trace/trace_sched_switch.c
these warnings:
kernel/trace/trace_sched_switch.c: In function ‘tracing_sched_register’:
kernel/trace/trace_sched_switch.c:96: warning: passing argument 1 of ‘register_trace_sched_wakeup_new’ from incompatible pointer type
kernel/trace/trace_sched_switch.c:112: warning: passing argument 1 of ‘unregister_trace_sched_wakeup_new’ from incompatible pointer type
kernel/trace/trace_sched_switch.c: In function ‘tracing_sched_unregister’:
kernel/trace/trace_sched_switch.c:121: warning: passing argument 1 of ‘unregister_trace_sched_wakeup_new’ from incompatible pointer type
Trigger because sched_wakeup_new tracepoints need the same trace
signature as sched_wakeup - which was changed recently.
Fix it.
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/sched.c')
-rw-r--r-- | kernel/sched.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sched.c b/kernel/sched.c index d377097572f9..ac5a70a87d1e 100644 --- a/kernel/sched.c +++ b/kernel/sched.c | |||
@@ -2457,7 +2457,7 @@ void wake_up_new_task(struct task_struct *p, unsigned long clone_flags) | |||
2457 | p->sched_class->task_new(rq, p); | 2457 | p->sched_class->task_new(rq, p); |
2458 | inc_nr_running(rq); | 2458 | inc_nr_running(rq); |
2459 | } | 2459 | } |
2460 | trace_sched_wakeup_new(rq, p); | 2460 | trace_sched_wakeup_new(rq, p, 1); |
2461 | check_preempt_curr(rq, p, 0); | 2461 | check_preempt_curr(rq, p, 0); |
2462 | #ifdef CONFIG_SMP | 2462 | #ifdef CONFIG_SMP |
2463 | if (p->sched_class->task_wake_up) | 2463 | if (p->sched_class->task_wake_up) |