s390/nmi: remove casts
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Mon, 12 Oct 2015 11:00:39 +0000 (13:00 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Tue, 27 Oct 2015 08:33:55 +0000 (09:33 +0100)
commitdc6e15556a9f21d640a62ae6de3cbfa68ec687a4
tree02ea7647de40ad75896741692e3bfe435ca4e8be
parent3d68286a4304574c250ca3b0a5429d2901688f16
s390/nmi: remove casts

Remove all the casts to and from the machine check interruption code.
This patch changes struct mci to a union, which contains an anonymous
structure with the already known bits and in addition an unsigned
long field, which contains the raw machine check interruption code.

This allows to simply assign and decoce the interruption code value
without the need for all those casts we had all the time.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/include/asm/nmi.h
arch/s390/kernel/nmi.c
drivers/s390/cio/cio.c