forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-02-20 e636c8d336489bf3eed5878299e6cc045bbad077
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) { \