aboutsummaryrefslogtreecommitdiff
path: root/arch/powerpc/lib/code-patching.c
diff options
context:
space:
mode:
authorNicholas Piggin <npiggin@gmail.com>2020-04-29 17:02:47 +1000
committerMichael Ellerman <mpe@ellerman.id.au>2020-05-20 23:39:56 +1000
commit9384e552aabb647ec22acb00181ca1715b0fcdfe (patch)
tree2beff170fb870ea3d41f4c0ead589747a0beef33 /arch/powerpc/lib/code-patching.c
parentceffa63acce7165c442395b7d64a11ab8b5c5dca (diff)
downloadlinux-9384e552aabb647ec22acb00181ca1715b0fcdfe.tar.gz
linux-9384e552aabb647ec22acb00181ca1715b0fcdfe.tar.bz2
linux-9384e552aabb647ec22acb00181ca1715b0fcdfe.zip
powerpc/64s: Fix early_init_mmu section mismatch
Christian reports: MODPOST vmlinux.o WARNING: modpost: vmlinux.o(.text.unlikely+0x1a0): Section mismatch in reference from the function .early_init_mmu() to the function .init.text:.radix__early_init_mmu() The function .early_init_mmu() references the function __init .radix__early_init_mmu(). This is often because .early_init_mmu lacks a __init annotation or the annotation of .radix__early_init_mmu is wrong. WARNING: modpost: vmlinux.o(.text.unlikely+0x1ac): Section mismatch in reference from the function .early_init_mmu() to the function .init.text:.hash__early_init_mmu() The function .early_init_mmu() references the function __init .hash__early_init_mmu(). This is often because .early_init_mmu lacks a __init annotation or the annotation of .hash__early_init_mmu is wrong. The compiler is uninlining early_init_mmu and not putting it in an init section because there is no annotation. Add it. Reported-by: Christian Zigotzky <chzigotzky@xenosoft.de> Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Tested-by: Christian Zigotzky <chzigotzky@xenosoft.de> Link: https://lore.kernel.org/r/20200429070247.1678172-1-npiggin@gmail.com
Diffstat (limited to 'arch/powerpc/lib/code-patching.c')
0 files changed, 0 insertions, 0 deletions