Searched hist:"09794 a5a" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/include/trace/stages/ |
H A D | stage4_event_fields.h | 09794a5a Tue Aug 02 14:44:12 CDT 2022 Steven Rostedt (Google) <rostedt@goodmis.org> tracing: Use alignof__(struct {type b;}) instead of offsetof()
Simplify:
#define ALIGN_STRUCTFIELD(type) ((int)(offsetof(struct {char a; type b;}, b)))
with
#define ALIGN_STRUCTFIELD(type) __alignof__(struct {type b;})
Which works just the same.
Link: https://lore.kernel.org/all/a7d202457150472588df0bd3b7334b3f@AcuMS.aculab.com/ Link: https://lkml.kernel.org/r/20220802154412.513c50e3@gandalf.local.home
Suggested-by: David Laight <David.Laight@ACULAB.COM> Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
|