]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
sched: Fix !CONFIG_SCHED_NUMA account_numa_enqueue() variant
authorIngo Molnar <mingo@kernel.org>
Sat, 20 Oct 2012 00:22:53 +0000 (02:22 +0200)
committerIngo Molnar <mingo@kernel.org>
Sat, 20 Oct 2012 08:00:12 +0000 (10:00 +0200)
This build warning:

  kernel/sched/fair.c:1015:1: warning: no return statement in function returning non-void

Triggers because the dummy account_numa_enqueue() should return the
rq's task list.

It's not possible to trigger this bug runtime, nevertheless fix the
warning.

Signed-off-by: Ingo Molnar <mingo@kernel.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Rik van Riel <riel@redhat.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/sched/fair.c

index e93032dca556c9784bb664602efdebc095fadd68..a66a1b61c44c958f8d457135e91741e8fadb339a 100644 (file)
@@ -967,6 +967,7 @@ void task_tick_numa(struct rq *rq, struct task_struct *curr)
 #else
 static struct list_head *account_numa_enqueue(struct rq *rq, struct task_struct *p)
 {
+       return NULL;
 }
 
 static void account_numa_dequeue(struct rq *rq, struct task_struct *p)