]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
tracing: fix warnings in kernel/trace/trace_sched_switch.c
authorIngo Molnar <mingo@elte.hu>
Fri, 19 Dec 2008 00:09:51 +0000 (01:09 +0100)
committerIngo Molnar <mingo@elte.hu>
Fri, 19 Dec 2008 00:05:38 +0000 (01:05 +0100)
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>
include/trace/sched.h
kernel/sched.c
kernel/trace/trace_sched_switch.c

index f4549d506b16b6a5eca75dbb5393dd09a9aba992..bc4c9eadc6bafef0c0255779419359fa0a81a65b 100644 (file)
@@ -21,8 +21,8 @@ DECLARE_TRACE(sched_wakeup,
                TPARGS(rq, p));
 
 DECLARE_TRACE(sched_wakeup_new,
-       TPPROTO(struct rq *rq, struct task_struct *p),
-               TPARGS(rq, p));
+       TPPROTO(struct rq *rq, struct task_struct *p, int success),
+               TPARGS(rq, p, success));
 
 DECLARE_TRACE(sched_switch,
        TPPROTO(struct rq *rq, struct task_struct *prev,
index d377097572f9f54579e167269ea3bb6fc0968cc1..ac5a70a87d1ecdb43f6da2e3fe5b074c2deda375 100644 (file)
@@ -2457,7 +2457,7 @@ void wake_up_new_task(struct task_struct *p, unsigned long clone_flags)
                p->sched_class->task_new(rq, p);
                inc_nr_running(rq);
        }
-       trace_sched_wakeup_new(rq, p);
+       trace_sched_wakeup_new(rq, p, 1);
        check_preempt_curr(rq, p, 0);
 #ifdef CONFIG_SMP
        if (p->sched_class->task_wake_up)
index 863390557b445d88596dde1b452ffb2e7e3e4ec8..781d72ef873cd4861303c26514a1deea9c265866 100644 (file)
@@ -247,3 +247,4 @@ __init static int init_sched_switch_trace(void)
        return register_tracer(&sched_switch_trace);
 }
 device_initcall(init_sched_switch_trace);
+