We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 087d857 commit 6d89731Copy full SHA for 6d89731
include/linux/sh_intc.h
@@ -97,7 +97,10 @@ struct intc_hw_desc {
97
unsigned int nr_subgroups;
98
};
99
100
-#define _INTC_ARRAY(a) a, __same_type(a, NULL) ? 0 : sizeof(a)/sizeof(*a)
+#define _INTC_SIZEOF_OR_ZERO(a) (_Generic(a, \
101
+ typeof(NULL): 0, \
102
+ default: sizeof(a)))
103
+#define _INTC_ARRAY(a) a, _INTC_SIZEOF_OR_ZERO(a)/sizeof(*a)
104
105
#define INTC_HW_DESC(vectors, groups, mask_regs, \
106
prio_regs, sense_regs, ack_regs) \
0 commit comments