Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

sched/topology: Mark set_sched_topology() __init

All callers of set_sched_topology() are within __init section. Mark
it __init too.

Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Valentin Schneider <vschneid@redhat.com>
Link: https://lore.kernel.org/r/20230603073645.1173332-1-linmiaohe@huawei.com

authored by

Miaohe Lin and committed by
Peter Zijlstra
0cce0fde a707df30

+2 -2
+1 -1
include/linux/sched/topology.h
··· 203 203 #endif 204 204 }; 205 205 206 - extern void set_sched_topology(struct sched_domain_topology_level *tl); 206 + extern void __init set_sched_topology(struct sched_domain_topology_level *tl); 207 207 208 208 #ifdef CONFIG_SCHED_DEBUG 209 209 # define SD_INIT_NAME(type) .name = #type
+1 -1
kernel/sched/topology.c
··· 1681 1681 #define for_each_sd_topology(tl) \ 1682 1682 for (tl = sched_domain_topology; tl->mask; tl++) 1683 1683 1684 - void set_sched_topology(struct sched_domain_topology_level *tl) 1684 + void __init set_sched_topology(struct sched_domain_topology_level *tl) 1685 1685 { 1686 1686 if (WARN_ON_ONCE(sched_smp_initialized)) 1687 1687 return;