@@ -28,11 +28,15 @@
.size = sizeof(_type[_len]), .align = ALIGN_STRUCTFIELD(_type), \
.is_signed = is_signed_type(_type), .filter_type = FILTER_OTHER },
-#undef __dynamic_array
-#define __dynamic_array(_type, _item, _len) { \
+#undef __dynamic_array_sign
+#define __dynamic_array_sign(_type, _item, _len, _sign) { \
.type = "__data_loc " #_type "[]", .name = #_item, \
.size = 4, .align = 4, \
- .is_signed = is_signed_type(_type), .filter_type = FILTER_OTHER },
+ .is_signed = _sign, .filter_type = FILTER_OTHER },
+
+#undef __dynamic_array
+#define __dynamic_array(_type, _item, _len) \
+ __dynamic_array_sign(_type, _item, _len, is_signed_type(_type))
#undef __string
#define __string(item, src) __dynamic_array(char, item, -1)
@@ -47,7 +51,7 @@
#define __bitmask(item, nr_bits) __dynamic_array(unsigned long, item, -1)
#undef __cpumask
-#define __cpumask(item) __dynamic_array(cpumask_t *, item, -1)
+#define __cpumask(item) __dynamic_array_sign(cpumask_t, item, -1, 0)
#undef __sockaddr
#define __sockaddr(field, len) __dynamic_array(u8, field, len)