]> git.baikalelectronics.ru Git - kernel.git/commit
sched/fair: Fix warning on non-SMP build
authorOlof Johansson <olof@lixom.net>
Sun, 25 Nov 2018 22:41:05 +0000 (14:41 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 27 Dec 2018 18:40:15 +0000 (10:40 -0800)
commit8bf9a2cbc682366c246e04cc70895fb96159ffb2
tree0666f64d4c38aec9687ccbc2bb9fd4c70c32e7d0
parentf9839f74efc4bf5d786b1a4db05fc983e6a3f1f8
sched/fair: Fix warning on non-SMP build

Caused by making the variable static:

  kernel/sched/fair.c:119:21: warning: 'capacity_margin' defined but not used [-Wunused-variable]

Seems easiest to just move it up under the existing ifdef CONFIG_SMP
that's a few lines above.

Fixes: 9f3b0ea674cd8 ('sched/fair: Make some variables static')
Signed-off-by: Olof Johansson <olof@lixom.net>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/sched/fair.c