Skip to content

Commit d9277d5

Browse files
Uwe Kleine-KönigRussell King
Uwe Kleine-König
authored and
Russell King
committed
ARM: 7312/1: only show modules in the memory layout for MODULES=y
This line is irritating and wrong when modules are not supported, so don't show it then. Signed-off-by: Uwe Kleine-König <[email protected]> Acked-by: Nicolas Pitre <[email protected]> Acked-by: Linus Walleij <[email protected]> Signed-off-by: Russell King <[email protected]>
1 parent a7f464f commit d9277d5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

arch/arm/mm/init.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -659,7 +659,9 @@ void __init mem_init(void)
659659
#ifdef CONFIG_HIGHMEM
660660
" pkmap : 0x%08lx - 0x%08lx (%4ld MB)\n"
661661
#endif
662+
#ifdef CONFIG_MODULES
662663
" modules : 0x%08lx - 0x%08lx (%4ld MB)\n"
664+
#endif
663665
" .text : 0x%p" " - 0x%p" " (%4d kB)\n"
664666
" .init : 0x%p" " - 0x%p" " (%4d kB)\n"
665667
" .data : 0x%p" " - 0x%p" " (%4d kB)\n"
@@ -678,7 +680,9 @@ void __init mem_init(void)
678680
MLM(PKMAP_BASE, (PKMAP_BASE) + (LAST_PKMAP) *
679681
(PAGE_SIZE)),
680682
#endif
683+
#ifdef CONFIG_MODULES
681684
MLM(MODULES_VADDR, MODULES_END),
685+
#endif
682686

683687
MLK_ROUNDUP(_text, _etext),
684688
MLK_ROUNDUP(__init_begin, __init_end),

0 commit comments

Comments
 (0)