Commit 148f1678 authored by Committed by Martin Schwidefsky
[S390] sparsemem: use SPARSEMEM_STATIC if !64BIT.
In case of !64BIT kernel we end up with a zero sized mem_section array. This happens because NR_MEM_SECTIONS is smaller than SECTIONS_PER_ROOT but we have: #define NR_SECTION_ROOTS (NR_MEM_SECTIONS / SECTIONS_PER_ROOT) and struct mem_section *mem_section[NR_SECTION_ROOTS]; So fix this by selecting SPARSEMEM_STATIC which makes sure that SECTIONS_PER_ROOT is 1. Cc: Gerald Schaefer <email@example.com> Signed-off-by: Heiko Carstens <firstname.lastname@example.org> Signed-off-by: Martin Schwidefsky <email@example.com>
Showing with 1 addition and 0 deletions