forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-11 297b60346df8beafee954a0fd7c2d64f33f3b9bc
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) { \