]> git.baikalelectronics.ru Git - kernel.git/commit
tracing: Add alignment to syscall metadata declarations
authorSteven Rostedt <srostedt@redhat.com>
Fri, 9 Jul 2010 19:41:44 +0000 (15:41 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Fri, 9 Jul 2010 19:53:04 +0000 (15:53 -0400)
commit63c51eaf91eed15dfcd9cd9d15d9b24bed4f7258
treedebbf5656caf6260aa4d6fc276dd043624527822
parent746c6348317c2f71fe7c4346f47ab8744c841a0e
tracing: Add alignment to syscall metadata declarations

For some reason if we declare a static variable and then assign it
later, and the assignment contains a __attribute__((__aligned__(#))),
some versions of gcc will ignore it.

This caused the syscall meta data to not be compact in its section
and caused a kernel oops when the section was being read.

The fix for these versions of gcc seems to be to add the aligned
attribute to the declaration as well.

This fixes the BZ regression:

  https://bugzilla.kernel.org/show_bug.cgi?id=16353

Reported-by: Zeev Tarantov <zeev.tarantov@gmail.com>
Tested-by: Zeev Tarantov <zeev.tarantov@gmail.com>
Acked-by: Frederic Weisbecker <fweisbec@gmail.com>
LKML-Reference: <AANLkTinkKVmB0fpVeqUkMeqe3ZYeXJdI8xDuzJEOjYwh@mail.gmail.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
include/linux/syscalls.h