Skip to content

Commit 44b6827

Browse files
author
Mamatha Inamdar
committed
powerpc/fadump: Fix section mismatch warning
JIRA: https://issues.redhat.com/browse/RHEL-52914 commit 61700f8 Author: Michael Ellerman <mpe@ellerman.id.au> Date: Thu May 16 22:14:44 2024 +1000 powerpc/fadump: Fix section mismatch warning With some compilers/configs fadump_setup_param_area() isn't inlined into its caller (which is __init), leading to a section mismatch warning: WARNING: modpost: vmlinux: section mismatch in reference: fadump_setup_param_area+0x200 (section: .text.fadump_setup_param_area) -> memblock_phys_alloc_range (section: .init.text) Fix it by adding an __init annotation. Fixes: 683eab9 ("powerpc/fadump: setup additional parameters for dump capture kernel") Reported-by: Stephen Rothwell <sfr@canb.auug.org.au> Closes: https://lore.kernel.org/all/20240515163708.3380c4d1@canb.auug.org.au/ Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/all/202405140922.oucLOx4Y-lkp@intel.com/ Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://msgid.link/20240516132631.347956-1-mpe@ellerman.id.au Signed-off-by: Mamatha Inamdar <minamdar@redhat.com>
1 parent efb7c41 commit 44b6827

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/powerpc/kernel/fadump.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1688,7 +1688,7 @@ static void __init fadump_init_files(void)
16881688
* Reserve memory to store additional parameters to be passed
16891689
* for fadump/capture kernel.
16901690
*/
1691-
static void fadump_setup_param_area(void)
1691+
static void __init fadump_setup_param_area(void)
16921692
{
16931693
phys_addr_t range_start, range_end;
16941694

0 commit comments

Comments
 (0)