]> git.baikalelectronics.ru Git - kernel.git/commit
printk: correctly align __log_buf
authorStephen Warren <swarren@nvidia.com>
Thu, 10 May 2012 22:14:33 +0000 (16:14 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 May 2012 22:36:59 +0000 (15:36 -0700)
commitc31bfeb4d4084912d31cb42d0c9a24e91614a5e4
treebd304f4638508c8a6879798384199b994cbb6c04
parentee6e5c30424a2a63c515990d201e2cf0e26d08fd
printk: correctly align __log_buf

__log_buf must be aligned, because a 64-bit value is written directly
to it as part of struct log. Alignment of the log entries is typically
handled by log_store(), but this only triggers for subsequent entries,
not the very first (or wrapped) entries.

Cc: Kay Sievers <kay@vrfy.org>
Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
kernel/printk.c