diff options
Diffstat (limited to 'kernel/trace/trace_events.c')
-rw-r--r-- | kernel/trace/trace_events.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/trace/trace_events.c b/kernel/trace/trace_events.c index 9887131afa03..b92081588088 100644 --- a/kernel/trace/trace_events.c +++ b/kernel/trace/trace_events.c | |||
@@ -381,8 +381,11 @@ event_enable_write(struct file *filp, const char __user *ubuf, size_t cnt, | |||
381 | return cnt; | 381 | return cnt; |
382 | } | 382 | } |
383 | 383 | ||
384 | extern char *__bad_type_size(void); | ||
385 | |||
384 | #undef FIELD | 386 | #undef FIELD |
385 | #define FIELD(type, name) \ | 387 | #define FIELD(type, name) \ |
388 | sizeof(type) != sizeof(field.name) ? __bad_type_size() : \ | ||
386 | #type, "common_" #name, offsetof(typeof(field), name), \ | 389 | #type, "common_" #name, offsetof(typeof(field), name), \ |
387 | sizeof(field.name) | 390 | sizeof(field.name) |
388 | 391 | ||