public inbox for kernel-janitors@vger.kernel.org
 help / color / mirror / Atom feed
* [patch] sched: signedness bug in yield_to()
@ 2013-02-05 11:37 Dan Carpenter
  2014-05-23 10:20 ` Dan Carpenter
  0 siblings, 1 reply; 4+ messages in thread
From: Dan Carpenter @ 2013-02-05 11:37 UTC (permalink / raw)
  To: Ingo Molnar; +Cc: Peter Zijlstra, linux-kernel, kernel-janitors, kbuild

In 7b270f6099 "sched: Bail out of yield_to when source and target
runqueue has one task" we changed this to store -ESRCH so it needs to
be signed.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>

diff --git a/kernel/sched/core.c b/kernel/sched/core.c
index 3e7b280..7ba7ea5 100644
--- a/kernel/sched/core.c
+++ b/kernel/sched/core.c
@@ -4384,7 +4384,7 @@ bool __sched yield_to(struct task_struct *p, bool preempt)
 	struct task_struct *curr = current;
 	struct rq *rq, *p_rq;
 	unsigned long flags;
-	bool yielded = 0;
+	int yielded = 0;
 
 	local_irq_save(flags);
 	rq = this_rq();

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-05-23 13:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-05 11:37 [patch] sched: signedness bug in yield_to() Dan Carpenter
2014-05-23 10:20 ` Dan Carpenter
2014-05-23 10:46   ` Peter Zijlstra
2014-05-23 13:52   ` Raghavendra KT

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox