summaryrefslogtreecommitdiffstats
path: root/fs/ext3/balloc.c
diff options
context:
space:
mode:
authorSteve French <sfrench@us.ibm.com>2005-10-27 13:55:12 -0700
committerSteve French <sfrench@us.ibm.com>2005-10-27 13:55:12 -0700
commit0753ca7bc2b876dd136e9db11a20f85cbe4e08b1 (patch)
tree9fca686e1ca5886342232fe16292bae675a1004f /fs/ext3/balloc.c
parent04290949b3daef35d6279dcc05f01b549ac1772b (diff)
downloadop-kernel-dev-0753ca7bc2b876dd136e9db11a20f85cbe4e08b1.zip
op-kernel-dev-0753ca7bc2b876dd136e9db11a20f85cbe4e08b1.tar.gz
[CIFS] Change pragma pack(1) to attribute(packed) to allow cifs on arm to access
unaligned structures coming in off the wire gcc on arm processors generates very odd code with pragma pack specified - although it does pack the structures in some sense - it does not allow you to access unaligned elements in nested structures at the right offset as other architectures do. Oddly enough though, specifying the structures as packed the long way - one by one with the packed attribute does work. Rather than fighting over whether this is a gcc bug or some obscure side effect of pragma pack, it is easier to do what most (all but 96 other places in the kernel) do - and replace pragma pack with dozens of attribute(packed) structure qualifiers. Much more verbose ... but at least it works. Signed-off-by: David Kleikamp <shaggy@austin.ibm.com> Signed-off-by: Steve French <sfrench@us.ibm.com> CG: -----------------------------------------------------------------------
Diffstat (limited to 'fs/ext3/balloc.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud