s390: cleanup and add sanity checks to control register macros
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Mon, 30 Sep 2013 12:47:46 +0000 (14:47 +0200)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Thu, 24 Oct 2013 15:16:59 +0000 (17:16 +0200)
commit12325f097898c120c6cd89797aae97836783b5ef
treeeba83582d25ce2356e6bcffcbbce9235d955f044
parent6aa2677a57fdd8964ccd44766cdc06cdd9c5db5b
s390: cleanup and add sanity checks to control register macros

- turn some macros into functions
- merge two almost identical versions for 32/64 bit
- add BUILD_BUG_ON() check to make sure the passed in array is large enough

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