Skip to content

Commit

Permalink
[S390] fix sparsemem related compile error with allnoconfig on s390
Browse files Browse the repository at this point in the history
On s390 make allnoconfig fails with the following build error:

arch/s390/mm/init.c: In function 'show_mem':
arch/s390/mm/init.c:55: error: implicit declaration of function 'pfn_valid'
make[1]: *** [arch/s390/mm/init.o] Error 1
make: *** [arch/s390/mm] Error 2

This problem can by fixed ensuring that ARCH_SELECT_MEMORY_MODEL
is always turned on.

Signed-off-by: Hans-Joachim Picht <hans@linux.vnet.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
  • Loading branch information
Hans-Joachim Picht authored and Martin Schwidefsky committed May 30, 2008
1 parent 916941b commit 97195d6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions arch/s390/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,9 @@ config ARCH_SPARSEMEM_ENABLE
config ARCH_SPARSEMEM_DEFAULT
def_bool y

config ARCH_SELECT_MEMORY_MODEL
def_bool y

source "mm/Kconfig"

comment "I/O subsystem configuration"
Expand Down

0 comments on commit 97195d6

Please sign in to comment.