hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/include/trace/trace_events.h
....@@ -400,7 +400,7 @@
400400
401401 #include TRACE_INCLUDE(TRACE_INCLUDE_FILE)
402402
403
-#define ALIGN_STRUCTFIELD(type) ((int)(offsetof(struct {char a; type b;}, b)))
403
+#define ALIGN_STRUCTFIELD(type) ((int)(__alignof__(struct {type b;})))
404404
405405 #undef __field_ext
406406 #define __field_ext(_type, _item, _filter_type) { \