hc
2024-01-31 f9004dbfff8a3fbbd7e2a88c8a4327c7f2f8e5b2
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) { \