Skip to content
Snippets Groups Projects
Commit 99870bd7 authored by Paul Mundt's avatar Paul Mundt
Browse files

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: default avatarPaul Mundt <lethal@linux-sh.org>
parent a7bcf21e
No related branches found
No related tags found
No related merge requests found
...@@ -79,7 +79,7 @@ struct intc_hw_desc { ...@@ -79,7 +79,7 @@ struct intc_hw_desc {
unsigned int nr_subgroups; unsigned int nr_subgroups;
}; };
#define _INTC_ARRAY(a) a, a == NULL ? 0 : sizeof(a)/sizeof(*a) #define _INTC_ARRAY(a) a, __same_type(a, NULL) ? 0 : sizeof(a)/sizeof(*a)
#define INTC_HW_DESC(vectors, groups, mask_regs, \ #define INTC_HW_DESC(vectors, groups, mask_regs, \
prio_regs, sense_regs, ack_regs) \ prio_regs, sense_regs, ack_regs) \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment