sched: fix section mismatch
PATCH 1/1 sched: fix section mismatch
Impact: section mismatch fixes
init_rootdomain() calls alloc_bootmem_cpumask_var() at system boot, so does cpupri_init().
Signed-off-by Li Zefan <[email protected]>
--- kernel/sched.c | 2 +- kernel/sched_cpupri.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
kernel/sched.c +1 -1
@@ -6957,7 +6957,7 @@ static void rq_attach_root(struct rq *rq, struct root_domain *rd)spin_unlock_irqrestore (&rq->lock, flags); } -static int init_rootdomain (struct root_domain *rd,bool bootmem) +static int __init_refok init_rootdomain(struct root_domain *rd, bool bootmem) {memset (rd,0 ,sizeof (*rd));
kernel/sched_cpupri.c +1 -1
@@ -151,7 +151,7 @@ void cpupri_set(struct cpupri *cp, int cpu, int newpri)* * Returns: -ENOMEM if memory fails. */ -int cpupri_init (struct cpupri *cp,bool bootmem) +int __init_refok cpupri_init(struct cpupri *cp, bool bootmem) {int i;
Signature · 1 line
1.5.4.rc3
Ingo Molnar
AppliedQuoted 10 lines · Li Zefan
Impact: section mismatch fixes
init_rootdomain()callsalloc_bootmem_cpumask_var()at system boot, so doescpupri_init().Signed-off-by Li Zefan <[email protected]>--- kernel/sched.c | 2 +- kernel/sched_cpupri.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
applied to tip/sched/urgent, thanks,
Ingo