Re: [PATCH] sched/core: Fix compiling warring in smp=n case

2018-09-14 Thread Miguel Ojeda
Hi, On Thu, Sep 13, 2018 at 11:55 AM, Dou Liyang wrote: > > > At 08/10/2018 10:35 AM, Dou Liyang wrote: >> >> When compiling kernel with SMP disabled, the build warns with: >> >> kernel/sched/core.c: In function ‘update_rq_clock_task’: >> kernel/sched/core.c:139:17: warning: unused variable ‘irq_

Re: [PATCH] sched/core: Fix compiling warring in smp=n case

2018-09-13 Thread Dou Liyang
At 08/10/2018 10:35 AM, Dou Liyang wrote: When compiling kernel with SMP disabled, the build warns with: kernel/sched/core.c: In function ‘update_rq_clock_task’: kernel/sched/core.c:139:17: warning: unused variable ‘irq_delta’ [-Wunused-variable] s64 steal = 0, irq_delta = 0; Fix this by

Re: [PATCH] sched/core: Fix compiling warring in smp=n case

2018-08-10 Thread Vincent Guittot
Hi Dou, On Fri, 10 Aug 2018 at 04:35, Dou Liyang wrote: > > When compiling kernel with SMP disabled, the build warns with: > > kernel/sched/core.c: In function ‘update_rq_clock_task’: > kernel/sched/core.c:139:17: warning: unused variable ‘irq_delta’ > [-Wunused-variable] > s64 steal = 0, irq_