Skip to contentSkip to conversation

sched/topology: Add __init for init_defrootdomain

PATCH RESEND Applied Bing Huang 3 participants 3 messages Nov 18, 2022 – Dec 27, 2022 Scheduler

lore
Share & tools
lore

Bing Huang

author
#0 lore raw

PATCH RESEND v3 1/1 sched/topology: Add __init for init_defrootdomain

From: Bing Huang <[email protected]>

init_defrootdomain is only used in initialization

---
v1->v2:
Remove __init in function prototype
v2->v3:
Update the "Reviewed-by" tag

 kernel/sched/topology.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/sched/topology.c +1 -1
index 8739c2a5a54e..dea9fa39e7c0 100644
@@ -578,7 +578,7 @@ static int init_rootdomain(struct root_domain *rd)
  */
 struct root_domain def_root_domain;
 
-void init_defrootdomain(void)
+void __init init_defrootdomain(void)
 {
 	init_rootdomain(&def_root_domain);
 
Signature · 5 lines
2.25.1


No virus found
		Checked by Hillstone Network AntiVirus
merge bot Applied
#2 lore raw
In reply to Bing Huang
The following commit has been merged into the sched/core branch of tip:

The following commit has been merged into the sched/core branch of tip:

Commit-ID:     9a5322db46332a4ce42369e86f031b5e963d841c
Gitweb:        https://git.kernel.org/tip/9a5322db46332a4ce42369e86f031b5e963d841c
Author:        Bing Huang <[email protected]>
AuthorDate:    Fri, 18 Nov 2022 11:42:08 +08:00
Committer:     Peter Zijlstra <[email protected]>
CommitterDate: Tue, 27 Dec 2022 12:52:09 +01:00

sched/topology: Add __init for init_defrootdomain

init_defrootdomain is only used in initialization

---
 kernel/sched/topology.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/sched/topology.c +1 -1
index 8739c2a..dea9fa3 100644
@@ -578,7 +578,7 @@ out:
  */
 struct root_domain def_root_domain;
 
-void init_defrootdomain(void)
+void __init init_defrootdomain(void)
 {
 	init_rootdomain(&def_root_domain);