diff options
| author | 2009-03-03 13:53:07 -0500 | |
|---|---|---|
| committer | 2009-03-03 20:52:01 -0500 | |
| commit | e3d6bf0a0781a269f34250fd41e0d3dbfe540cf1 (patch) | |
| tree | 71ae10423f61c30d8a6c9cb08779b2f1066c89ad /include/linux/sysdev.h | |
| parent | ring-buffer: fix ring_buffer_read_page (diff) | |
ring-buffer: replace sizeof of event header with offsetof
Impact: fix to possible alignment problems on some archs.
Some arch compilers include an NULL char array in the sizeof field.
Since the ring_buffer_event type includes one of these, it is better
to use the "offsetof" instead, to avoid strange bugs on these archs.
Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Diffstat (limited to 'include/linux/sysdev.h')
0 files changed, 0 insertions, 0 deletions
