s390/irq: enforce correct irqclass_sub_desc array size
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Wed, 25 Mar 2015 07:05:49 +0000 (08:05 +0100)
committerMartin Schwidefsky <schwidefsky@de.ibm.com>
Wed, 25 Mar 2015 10:49:52 +0000 (11:49 +0100)
commit57fe1b263907430a27fabcfde11a144caac9f5cd
treec96bf9d0a311dcb58a207aa0387ae37a3eee28e7
parent304987e36577e308be483113fa85cef8d1b948d8
s390/irq: enforce correct irqclass_sub_desc array size

Add a BUILD_BUG_ON() to enforce that irqclass_sub_desc contains the required
number of defined interrupt descriptions and won't be filled up with zeros.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
arch/s390/kernel/irq.c