Unaligned access fixes
commit8871a0eaa98d951727e97c615d831af9a60432ae
authorDavid Miller <davem@davemloft.net>
Fri, 15 Feb 2008 16:19:58 +0000 (15 11:19 -0500)
committerDavid Woodhouse <dwmw2@hera.kernel.org>
Fri, 15 Feb 2008 16:19:58 +0000 (15 11:19 -0500)
tree7701fa42a830e2fba095199bfe25c62b42b9d36e
parent0c6513b1d120ba99a3d5f3641cb059723245ec00
Unaligned access fixes

The first problem is that these SETGET macros lose typing information,
and therefore can't see the 'packed' attribute and therefore take
unaligned access SIGBUS signals on sparc64 when trying to derefernce
the member.

The next problem is a similar issue in btrfs_name_hash().  This gets
passed things like &key.offset which is a member of a packed
structure, losing this packed'ness information btrfs_name_hash()
performs a potentially unaligned memory access, again resulting in a
SIGBUS.
ctree.h
dir-item.c
dir-test.c
hash.c
hash.h
hasher.c