]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
fat: fix unaligned errors
authorBryan Wu <bryan.wu@analog.com>
Sat, 3 Jan 2009 01:47:45 +0000 (20:47 -0500)
committerWolfgang Denk <wd@denx.de>
Sat, 24 Jan 2009 01:03:39 +0000 (02:03 +0100)
commit7e4b9b4f6f43838fad3ad72c029a3d7fc7c7d48c
tree15e3bff16bca717affc4631f8b4e513e2c57765e
parent68f8718df2ed4c2f43031407ccf6cfa81125dddc
fat: fix unaligned errors

A couple of buffers in the fat code are declared as an array of bytes.
But it is then cast up to a structure with 16bit and 32bit members.
Since GCC assumes structure alignment here, we have to force the
buffers to be aligned according to the structure usage.

Signed-off-by: Bryan Wu <bryan.wu@analog.com>
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
fs/fat/fat.c