]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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, 17 Oct 2013 07:26:07 +0000 (09:26 +0200)
commit604d20dc1f5de535dcbab339cfd43314a14b736f
tree7142c7d438b6a8c7ea1784990f9825c68189adda
parentd64edafecf88b716bfc1f73fa84c536a2305d982
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