kernel/include/trace/trace_events.h
.. .. @@ -400,7 +400,7 @@ 400 400 401 401 #include TRACE_INCLUDE(TRACE_INCLUDE_FILE) 402 402 403 -#define ALIGN_STRUCTFIELD(type) ((int)(offsetof(struct {char a; type b;}, b)))403 +#define ALIGN_STRUCTFIELD(type) ((int)(__alignof__(struct {type b;})))404 404 405 405 #undef __field_ext 406 406 #define __field_ext(_type, _item, _filter_type) { \