Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

sh: intc: Fix up initializers for gcc 4.5.

The _INTC_ARRAY() initializer presently does a NULL test which blows up
as a non-constant initializer under gcc 4.5. This switches over to a type
test to account for NULL initializers explicitly.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>

+1 -1
+1 -1
include/linux/sh_intc.h
··· 79 79 unsigned int nr_subgroups; 80 80 }; 81 81 82 - #define _INTC_ARRAY(a) a, a == NULL ? 0 : sizeof(a)/sizeof(*a) 82 + #define _INTC_ARRAY(a) a, __same_type(a, NULL) ? 0 : sizeof(a)/sizeof(*a) 83 83 84 84 #define INTC_HW_DESC(vectors, groups, mask_regs, \ 85 85 prio_regs, sense_regs, ack_regs) \