linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] sched: Fix a GCC compiled warning.
@ 2018-09-14 14:49 zhong jiang
  2018-09-14 16:43 ` Miguel Ojeda
  0 siblings, 1 reply; 3+ messages in thread
From: zhong jiang @ 2018-09-14 14:49 UTC (permalink / raw)
  To: mingo, peterz; +Cc: linux-kernel

Fix the following compile warning:

kernel/sched/core.c: In function ‘update_rq_clock_task’:
kernel/sched/core.c:139:6: warning: unused variable ‘steal’ [-Wunused-variable]
  s64 steal = 0, irq_delta = 0;

Signed-off-by: zhong jiang <zhongjiang@huawei.com>
---
 kernel/sched/core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/sched/core.c b/kernel/sched/core.c
index 7577ce4..1003c1d 100644
--- a/kernel/sched/core.c
+++ b/kernel/sched/core.c
@@ -136,7 +136,7 @@ static void update_rq_clock_task(struct rq *rq, s64 delta)
  * to sched_rt_avg_update. But I don't trust it...
  */
 #if defined(CONFIG_IRQ_TIME_ACCOUNTING) || defined(CONFIG_PARAVIRT_TIME_ACCOUNTING)
-	s64 steal = 0, irq_delta = 0;
+	s64 __maybe_unused steal = 0, irq_delta = 0;
 #endif
 #ifdef CONFIG_IRQ_TIME_ACCOUNTING
 	irq_delta = irq_time_read(cpu_of(rq)) - rq->prev_irq_time;
-- 
1.7.12.4


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

end of thread, other threads:[~2018-09-15  1:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-14 14:49 [PATCH] sched: Fix a GCC compiled warning zhong jiang
2018-09-14 16:43 ` Miguel Ojeda
2018-09-15  1:18   ` zhong jiang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).