microblaze/mm: put mm_cmdline_setup() in .init.text section
Subsystems (2)
PATCH 1/1 microblaze/mm: put mm_cmdline_setup() in .init.text section
As reported by lkp, there is a section mismatch of mm_cmdline_setup() and memblock. The reason is we don't specify the section of mm_cmdline_setup() and gcc put it into .text.unlikely.
As mm_cmdline_setup() is only used in mmu_init(), which is in .init.text section, put mm_cmdline_setup() into it too.
Signed-off-by Wei Yang <[email protected]>
CC Masahiro Yamada <[email protected]>
CC Andrew Morton <[email protected]>
Reported-by kernel test robot <[email protected]>
--- arch/microblaze/mm/init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/microblaze/mm/init.c +1 -1
@@ -143,7 +143,7 @@ int page_is_ram(unsigned long pfn)/* * Check for command-line options that affect what MMU_init will do. */ -static void mm_cmdline_setup (void ) +static void __init mm_cmdline_setup (void ) {unsigned long maxmem =0 ;char *p = cmd_line;
Signature · 1 line
2.34.1
Quoted 4 lines · Wei Yang
As reported by lkp, there is a section mismatch of
mm_cmdline_setup()and memblock. The reason is we don't specify the section ofmm_cmdline_setup()and gcc put it into .text.unlikely.
Quoted 8 lines
As
mm_cmdline_setup()is only used inmmu_init(), which is in .init.text section, putmm_cmdline_setup()into it too.Signed-off-by Wei Yang <[email protected]>CC Masahiro Yamada <[email protected]>CC Andrew Morton <[email protected]>Reported-by kernel test robot <[email protected]>
Reviewed-by Oscar Salvador <[email protected]>
Signature · 2 lines
Oscar Salvador SUSE Labs