Commit edf8c7d2 authored by Cheng Jian's avatar Cheng Jian
Browse files

sched/fair: fix try_steal compile error

hulk inclusion
category: bugfix
bugzilla: 38261, https://bugzilla.openeuler.org/show_bug.cgi?id=23


CVE: NA

---------------------------

If we disable CONFIG_SMP, try_steal will lose its definition,
resulting in a compile error as follows.

	kernel/sched/fair.c: In function ‘pick_next_task_fair’:
	kernel/sched/fair.c:7001:15: error: implicit declaration of function ‘try_steal’ [-Werror=implicit-function-declaration]
		new_tasks = try_steal(rq, rf);
			    ^~~~~~~~~

We can use allnoconfig to reproduce this problem.

Signed-off-by: default avatarCheng Jian <cj.chengjian@huawei.com>
Reviewed-by: default avatarBin Li <huawei.libin@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
Reviewed-by: default avatarXie XiuQi <xiexiuqi@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
parent 402b5928
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment