|
@@ -422,6 +422,7 @@ static struct trace_event_functions trace_event_type_funcs_##call = { \
|
|
do { \
|
|
do { \
|
|
char *type_str = #type"["__stringify(len)"]"; \
|
|
char *type_str = #type"["__stringify(len)"]"; \
|
|
BUILD_BUG_ON(len > MAX_FILTER_STR_VAL); \
|
|
BUILD_BUG_ON(len > MAX_FILTER_STR_VAL); \
|
|
|
|
+ BUILD_BUG_ON(len <= 0); \
|
|
ret = trace_define_field(event_call, type_str, #item, \
|
|
ret = trace_define_field(event_call, type_str, #item, \
|
|
offsetof(typeof(field), item), \
|
|
offsetof(typeof(field), item), \
|
|
sizeof(field.item), \
|
|
sizeof(field.item), \
|