forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-02-19 1c055e55a242a33e574e48be530e06770a210dcd
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) { \