From: Scott Wood <scottwood@freescale.com>
To: Andy Fleming <afleming@freescale.com>
Cc: linuxppc-dev@ozlabs.org, netdev@vger.kernel.org,
paul.gortmaker@windriver.com
Subject: Re: [PATCH v2.6.26] gianfar: Determine TBIPA value dynamically
Date: Fri, 11 Apr 2008 14:11:44 -0500 [thread overview]
Message-ID: <47FFB7F0.5030206@freescale.com> (raw)
In-Reply-To: <1D6963B0-4EC5-41F7-8BFA-97C2C0647A13@freescale.com>
Andy Fleming wrote:
> I tried. Technically, we can. But the issue is that struct gfar
> *enet_regs->gfar_mii_regs is declared:
>
> u8 gfar_mii_regs[24];
>
> I could not find any sequence of castings that made the warning go away
> about casting that to a struct gfar_mii __iomem *. And that includes
> mucking around with the declaration of gfar_mii_regs. I vaguely recall
> determining that you couldn't make it a struct, because you can't
> guarantee gcc won't much with the size of the struct. Or something.
We use structs for registers all over the place. The only time GCC
should mess with struct layout is if fields aren't aligned as required
by the ABI (and in that case, use the packed attribute).
-Scott
next prev parent reply other threads:[~2008-04-11 19:11 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-10 23:34 [PATCH v2.6.26] gianfar: Determine TBIPA value dynamically Andy Fleming
2008-04-11 15:31 ` Scott Wood
2008-04-11 19:06 ` Andy Fleming
2008-04-11 19:11 ` Scott Wood [this message]
2008-04-11 15:49 ` Paul Gortmaker
2008-04-14 16:55 ` Andy Fleming
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=47FFB7F0.5030206@freescale.com \
--to=scottwood@freescale.com \
--cc=afleming@freescale.com \
--cc=linuxppc-dev@ozlabs.org \
--cc=netdev@vger.kernel.org \
--cc=paul.gortmaker@windriver.com \
/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;
as well as URLs for NNTP newsgroup(s).