Skip to content

Commit 1b3d3e9

Browse files
RichardWeiYangakpm00
authored andcommitted
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. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Wei Yang <[email protected]> Reported-by: kernel test robot <[email protected]> Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ Reviewed-by: Oscar Salvador <[email protected]> Cc: Masahiro Yamada <[email protected]> Cc: Michal Simek <[email protected]> Cc: Wei Yang <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent 9342bc1 commit 1b3d3e9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/microblaze/mm/init.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ int page_is_ram(unsigned long pfn)
118118
/*
119119
* Check for command-line options that affect what MMU_init will do.
120120
*/
121-
static void mm_cmdline_setup(void)
121+
static void __init mm_cmdline_setup(void)
122122
{
123123
unsigned long maxmem = 0;
124124
char *p = cmd_line;

0 commit comments

Comments
 (0)