]> git.baikalelectronics.ru Git - kernel.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, 24 Oct 2013 15:16:59 +0000 (17:16 +0200)
commit5af77670c87c383a8bdc8e8fa7b353bfd619c4f1
treeeba83582d25ce2356e6bcffcbbce9235d955f044
parent7f516ea0b31785f6246197dd0a3d4cff170440d5
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