From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wolfgang Denk Date: Sat, 24 Jan 2009 02:03:53 +0100 Subject: [U-Boot] [PATCH v2] fat: fix unaligned errors In-Reply-To: <1230947265-19412-1-git-send-email-vapier@gentoo.org> References: <20090102234850.611588387CDB@gemini.denx.de> <1230947265-19412-1-git-send-email-vapier@gentoo.org> Message-ID: <20090124010353.2ECFF832E425@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Mike Frysinger, In message <1230947265-19412-1-git-send-email-vapier@gentoo.org> you wrote: > From: Bryan Wu > > 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 > Signed-off-by: Mike Frysinger > --- > v1 > - use alignof() rather than sizeof() > > fs/fat/fat.c | 8 +++++--- > 1 files changed, 5 insertions(+), 3 deletions(-) Applied, thanks. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de "There is such a fine line between genius and stupidity." - David St. Hubbins, "Spinal Tap"