Re: [PATCH RESEND] sched/topology: Add __init for init_defrootdomain

From: Bing Huang
Date: Fri Sep 09 2022 - 02:24:45 EST



On 9/7/22 08:37, Steven Rostedt wrote:
On Wed, 31 Aug 2022 17:39:27 +0800
Bing Huang <huangbing775@xxxxxxx> wrote:

diff --git a/kernel/sched/sched.h b/kernel/sched/sched.h
index b0bf2287dd9d..cd761f1fc60c 100644
--- a/kernel/sched/sched.h
+++ b/kernel/sched/sched.h
@@ -883,7 +883,7 @@ struct root_domain {
struct perf_domain __rcu *pd;
};
-extern void init_defrootdomain(void);
+extern void __init init_defrootdomain(void);
Function prototypes in headers do not need annotations like __init.

-- Steve
Thanks. I'll send the patch v2 soon.

extern int sched_init_domains(const struct cpumask *cpu_map);
extern void rq_attach_root(struct rq *rq, struct root_domain *rd);
extern void sched_get_rd(struct root_domain *rd);