Skip to content

Commit f0fbe65

Browse files
seehearfeelchenhuacai
authored andcommitted
LoongArch: Fix section mismatch warning
init_numa_memory() is annotated __init and not used by any module, thus don't export it. Remove not needed EXPORT_SYMBOL for init_numa_memory() to fix the following section mismatch warning: MODPOST vmlinux.symvers WARNING: modpost: vmlinux.o(___ksymtab+init_numa_memory+0x0): Section mismatch in reference from the variable __ksymtab_init_numa_memory to the function .init.text:init_numa_memory() The symbol init_numa_memory is exported and annotated __init Fix this by removing the __init annotation of init_numa_memory or drop the export. This is build on Linux 5.19-rc4. Fixes: d4b6f15 ("LoongArch: Add Non-Uniform Memory Access (NUMA) support") Signed-off-by: Tiezhu Yang <[email protected]> Signed-off-by: Huacai Chen <[email protected]>
1 parent e6ee902 commit f0fbe65

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

arch/loongarch/kernel/numa.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,6 @@ int __init init_numa_memory(void)
429429
return 0;
430430
}
431431

432-
EXPORT_SYMBOL(init_numa_memory);
433432
#endif
434433

435434
void __init paging_init(void)

0 commit comments

Comments
 (0)