Files
Linux/include/trace/stages
Steven Rostedt (Google) 09794a5a6c 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/[email protected]/
Link: https://lkml.kernel.org/r/[email protected]

Suggested-by: David Laight <[email protected]>
Signed-off-by: Steven Rostedt (Google) <[email protected]>
2022-08-02 16:01:12 -04:00
..
…