[PATCH] sched/topology: Add __init for sched_init_domains

From: Bing Huang
Date: Wed Jan 04 2023 - 21:27:23 EST


From: Bing Huang <huangbing@xxxxxxxxxx>

sched_init_domains is only used in initialization

Signed-off-by: Bing Huang <huangbing@xxxxxxxxxx>
---
kernel/sched/topology.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/sched/topology.c b/kernel/sched/topology.c
index dea9fa39e7c0..d93c3379e901 100644
--- a/kernel/sched/topology.c
+++ b/kernel/sched/topology.c
@@ -2451,7 +2451,7 @@ void free_sched_domains(cpumask_var_t doms[], unsigned int ndoms)
* Set up scheduler domains and groups. For now this just excludes isolated
* CPUs, but could be used to exclude other special cases in the future.
*/
-int sched_init_domains(const struct cpumask *cpu_map)
+int __init sched_init_domains(const struct cpumask *cpu_map)
{
int err;

--
2.25.1