]> git.baikalelectronics.ru Git - kernel.git/commit
tty: Fix width of unsigned long bitfield padding
authorPeter Hurley <peter@hurleysoftware.com>
Wed, 24 Sep 2014 10:26:21 +0000 (06:26 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Sep 2014 10:17:25 +0000 (12:17 +0200)
commit0fbd1306780318dbc52c1bd79c6f0509c3b11768
tree10c8bd48bc4e96d8516132fb3e6aa69a2059c515
parent393a0396b977f3a3e22fe31336363ef8b6821ac0
tty: Fix width of unsigned long bitfield padding

Commit 1c70f2cf581a16838ee292bb6d2e07a1778a18d1,
'tty: Serialize tcflow() with other tty flow control changes' and
commit 393a0396b977f3a3e22fe31336363ef8b6821ac0,
'tty: Workaround Alpha non-atomic byte storage in tty_struct' work around
compiler bugs and non-atomic storage on multiple arches by padding
bitfields out to the declared type which is unsigned long. However, the
width varies by arch.

Pad bitfields to actual width of unsigned long (which is BITS_PER_LONG).

Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
include/linux/tty.h