Skip to content

Commit 9014eab

Browse files
legoatermpe
authored andcommitted
powerpc/smp: Add __init to init_big_cores()
It fixes this link warning: WARNING: modpost: vmlinux.o(.text.unlikely+0x2d98): Section mismatch in reference from the function init_big_cores.isra.0() to the function .init.text:init_thread_group_cache_map() The function init_big_cores.isra.0() references the function __init init_thread_group_cache_map(). This is often because init_big_cores.isra.0 lacks a __init annotation or the annotation of init_thread_group_cache_map is wrong. Fixes: 425752c ("powerpc: Detect the presence of big-cores via "ibm, thread-groups"") Signed-off-by: Cédric Le Goater <clg@kaod.org> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20201221074154.403779-1-clg@kaod.org
1 parent 0faa22f commit 9014eab

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎arch/powerpc/kernel/smp.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -990,7 +990,7 @@ static struct sched_domain_topology_level powerpc_topology[] = {
990990
{ NULL, },
991991
};
992992

993-
static int init_big_cores(void)
993+
static int __init init_big_cores(void)
994994
{
995995
int cpu;
996996

0 commit comments

Comments
 (0)