[S390] Ensure that vmcore_info pointer is never accessed directly
authorMichael Holzheu <holzheu@linux.vnet.ibm.com>
Sun, 11 Mar 2012 15:59:38 +0000 (11:59 -0400)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Sun, 11 Mar 2012 15:59:30 +0000 (11:59 -0400)
commitf5bfa159d20c9a25c44a7f848c70d4156f78ba64
tree78751be113b5a47f2b53e19036834f1ed912c0e6
parent25e2cf1c1ac52d5078cf8cc3fd2f2ad084669ddd
[S390] Ensure that vmcore_info pointer is never accessed directly

Because the vmcore_info pointer is not 8 byte aligned it never should
not be accessed directly. The reason is that the compiler assumes that
64 bit pointer are always double word aligned. To ensure save access,
the vmcore_info type in struct lowcore is changed from u64 to an u8[8]
array and a comment is added.

Signed-off-by: Michael Holzheu <holzheu@linux.vnet.ibm.com>
Reported-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/include/asm/lowcore.h