s390/traps: get rid of magic cast for per code
authorHeiko Carstens <hca@linux.ibm.com>
Sun, 6 Mar 2022 09:59:05 +0000 (10:59 +0100)
committerVasily Gorbik <gor@linux.ibm.com>
Mon, 7 Mar 2022 23:33:01 +0000 (00:33 +0100)
commit998e78004fe4dd9219b039efe763e19d10d9a6f9
treeccc4df0bba7f90956a4996b112b4bd5b0a8ffae7
parent52b739e2780c7a15e5be06f1691d92ba5f962f79
s390/traps: get rid of magic cast for per code

Add a proper union in lowcore to reflect architecture and get rid of a
"magic" cast in order to read the full per code.

Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/include/asm/lowcore.h
arch/s390/kernel/traps.c