]> git.baikalelectronics.ru Git - kernel.git/commit
[S390] Fix section mismatch warnings.
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Fri, 30 May 2008 08:03:27 +0000 (10:03 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Fri, 30 May 2008 08:03:34 +0000 (10:03 +0200)
commit92846d9818f6402823bd99a3e29a436c0b61e958
tree84a9f66567bcec141f80b0fbc9db995ac9323a50
parent5855af4993e5dd5eedfc7e5fe2c489706cceb5c4
[S390] Fix section mismatch warnings.

This fixes the last remaining section mismatch warnings in s390
architecture code. It reveals also a real bug introduced by... me
with git commit 946c3776237c569ab74da3ed7872ced9b67d8419
("[S390] sparsemem vmemmap: initialize memmap.")

Calling the generic vmemmap_alloc_block() function to get initialized
memory is a nice idea, however that function is __meminit annotated
and therefore the function might be gone if we try to call it later.
This can happen if a DCSS segment gets added.

So basically revert the patch and clear the memmap explicitly to fix
the original bug.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/kernel/smp.c
arch/s390/mm/vmem.c
drivers/s390/char/sclp_config.c