]> 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>
Tue, 15 Oct 2013 12:45:35 +0000 (14:45 +0200)
commit01ba59bb16cae1b2a4509d08fbe9344627bdaafa
tree7142c7d438b6a8c7ea1784990f9825c68189adda
parent7722267edbf0edf21c999279794d4896cac6e4b9
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