On Wed, 31 Aug 2022 17:39:27 +0800Thanks. I'll send the patch v2 soon.
Bing Huang <huangbing775@xxxxxxx> wrote:
diff --git a/kernel/sched/sched.h b/kernel/sched/sched.hFunction prototypes in headers do not need annotations like __init.
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);
-- Steve
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);