From: Seung-Woo Kim Date: Fri, 14 May 2021 01:56:44 +0000 (+0900) Subject: Revert "sched: Remove sched_setscheduler*() EXPORTs" X-Git-Tag: submit/tizen/20220208.074352~54 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=af2e02c1231ebd8644bc1b2e11db75d49fba9157;p=platform%2Fkernel%2Flinux-rpi.git Revert "sched: Remove sched_setscheduler*() EXPORTs" This reverts commit 616d91b68cd56bcb1954b6a5af7d542401fde772. Some out-of-tree module still uses sched_setscheduler(), so for build, revert removing export symbol for it. Change-Id: Ic2dbfc04e03e91c5d8daf52039f06149ae0d5fb1 Signed-off-by: Seung-Woo Kim --- diff --git a/kernel/sched/core.c b/kernel/sched/core.c index 0a5f9fa..1c7cf6d 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -5506,11 +5506,13 @@ int sched_setscheduler(struct task_struct *p, int policy, { return _sched_setscheduler(p, policy, param, true); } +EXPORT_SYMBOL_GPL(sched_setscheduler); int sched_setattr(struct task_struct *p, const struct sched_attr *attr) { return __sched_setscheduler(p, attr, true, true); } +EXPORT_SYMBOL_GPL(sched_setattr); int sched_setattr_nocheck(struct task_struct *p, const struct sched_attr *attr) { @@ -5535,6 +5537,7 @@ int sched_setscheduler_nocheck(struct task_struct *p, int policy, { return _sched_setscheduler(p, policy, param, false); } +EXPORT_SYMBOL_GPL(sched_setscheduler_nocheck); /* * SCHED_FIFO is a broken scheduler model; that is, it is fundamentally