lkml.org 
[lkml]   [2008]   [Feb]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH 2/3] sched: trivial sparse warning in sched.c
From
Date

On Fri, 2008-02-15 at 09:56 -0800, Harvey Harrison wrote:
> kernel/sched.c:3680:3: warning: returning void-valued expression

I'm wondering,... why is this wrong?

> Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
> ---
> kernel/sched.c | 6 ++++--
> 1 files changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/kernel/sched.c b/kernel/sched.c
> index f28f19e..824d5a9 100644
> --- a/kernel/sched.c
> +++ b/kernel/sched.c
> @@ -3676,8 +3676,10 @@ void account_system_time(struct task_struct *p, int hardirq_offset,
> struct rq *rq = this_rq();
> cputime64_t tmp;
>
> - if ((p->flags & PF_VCPU) && (irq_count() - hardirq_offset == 0))
> - return account_guest_time(p, cputime);
> + if ((p->flags & PF_VCPU) && (irq_count() - hardirq_offset == 0)) {
> + account_guest_time(p, cputime);
> + return;
> + }
>
> p->stime = cputime_add(p->stime, cputime);
>



\
 
 \ /
  Last update: 2008-02-16 22:15    [W:0.058 / U:0.500 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site