Skip to content

Commit 61700f8

Browse files
committed
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 <[email protected]> Closes: https://lore.kernel.org/all/[email protected]/ Reported-by: kernel test robot <[email protected]> Closes: https://lore.kernel.org/all/[email protected]/ Signed-off-by: Michael Ellerman <[email protected]> Link: https://msgid.link/[email protected]
1 parent e789d44 commit 61700f8

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
@@ -1740,7 +1740,7 @@ static void __init fadump_process(void)
17401740
* Reserve memory to store additional parameters to be passed
17411741
* for fadump/capture kernel.
17421742
*/
1743-
static void fadump_setup_param_area(void)
1743+
static void __init fadump_setup_param_area(void)
17441744
{
17451745
phys_addr_t range_start, range_end;
17461746

0 commit comments

Comments
 (0)