From: Steven Rostedt Date: Tue, 3 Mar 2009 18:53:07 +0000 (-0500) Subject: ring-buffer: replace sizeof of event header with offsetof X-Git-Tag: v2.6.30-rc1~2^2~70^2~2^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e3d6bf0a0781a269f34250fd41e0d3dbfe540cf1;p=pandora-kernel.git 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 --- Reading git-diff-tree failed