All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stefano Babic <sbabic@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] display_buffer: fix misaligned buffer
Date: Mon, 30 Aug 2010 12:31:55 +0200	[thread overview]
Message-ID: <4C7B889B.305@denx.de> (raw)
In-Reply-To: <m239twl8p7.fsf@ohwell.denx.de>

Detlev Zundel wrote:
> Hi Reinhard,
> 
Hi Reinhard, hi Detlev,

>> should make the buffer an union:
>>
>> union {
>> 	uint32_t ui[MAX.../4+1];
>> 	uint16_t us[MAX.../2+1];
>> 	uint8_t  uc[MAX...+1];
>> } linebuf;
> 
> That also sounds good indeed - it even better documents the intention of
> the code so by my own arguments I'd vote for it.  I presume you will
> follow up with such a patch once you tested it?

I agree this is a better solution as adding a simple comment. Some time
a comment is valid only at the time of the writing, and further patches
could drop its meaning if the comment is not updated, too.

Detlev, regarding the discussion I would only point out that we have to
be sure that such kind of patch will be merged in the current release.
It would be a real pity if a new official realease is published and then
even a simple "md" command does not work on ARM.

Stefano

-- 
=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: office at denx.de
=====================================================================

  reply	other threads:[~2010-08-30 10:31 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-27 20:23 [U-Boot] [PATCH] display_buffer: fix misaligned buffer Reinhard Meyer
2010-08-30  8:59 ` Detlev Zundel
2010-08-30  9:22   ` Reinhard Meyer
2010-08-30  9:39     ` Reinhard Meyer
2010-08-30 10:02       ` Detlev Zundel
2010-08-30 10:31         ` Stefano Babic [this message]
2010-08-30 10:46           ` Albert ARIBAUD
2010-08-30 11:04             ` Reinhard Meyer
2010-08-30 11:05           ` Detlev Zundel
2010-08-30 13:37             ` Reinhard Meyer
2010-08-30 16:47               ` Detlev Zundel
2010-08-30 18:03                 ` Albert ARIBAUD
2010-08-30 18:25                   ` Reinhard Meyer
2010-08-30 22:32                     ` Detlev Zundel
2010-08-30 22:29                   ` Detlev Zundel
2010-08-31  5:38                     ` Albert ARIBAUD
2010-08-31  6:04                       ` Reinhard Meyer
2010-09-01 15:01                         ` Detlev Zundel
2010-09-02  7:39                         ` Wolfgang Denk
2010-09-02 17:42                         ` Mike Frysinger
2010-09-07 23:23       ` Wolfgang Denk
2010-08-30  9:49     ` Detlev Zundel
2010-09-07 23:22     ` Wolfgang Denk

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=4C7B889B.305@denx.de \
    --to=sbabic@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.