public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Wolfgang Denk <wd@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2] fat: fix unaligned errors
Date: Sat, 24 Jan 2009 02:03:53 +0100	[thread overview]
Message-ID: <20090124010353.2ECFF832E425@gemini.denx.de> (raw)
In-Reply-To: <1230947265-19412-1-git-send-email-vapier@gentoo.org>

Dear Mike Frysinger,

In message <1230947265-19412-1-git-send-email-vapier@gentoo.org> you wrote:
> From: Bryan Wu <bryan.wu@analog.com>
> 
> 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>
> ---
> 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"

      reply	other threads:[~2009-01-24  1:03 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-02  0:54 [U-Boot] [PATCH] fat: fix unaligned errors Mike Frysinger
2009-01-02  9:32 ` Remy Bohmer
2009-01-02 10:16   ` Mike Frysinger
2009-01-02 22:20 ` Wolfgang Denk
2009-01-02 22:42   ` Mike Frysinger
2009-01-02 23:48     ` Wolfgang Denk
2009-01-03  1:47       ` Mike Frysinger
2009-01-03  1:47       ` [U-Boot] [PATCH v2] " Mike Frysinger
2009-01-24  1:03         ` Wolfgang Denk [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090124010353.2ECFF832E425@gemini.denx.de \
    --to=wd@denx.de \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox