From: Anatolij Gustschin <agust@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] drivers/net/e1000_spi.c: Fix build warnings
Date: Tue, 20 Dec 2011 17:35:31 +0100 [thread overview]
Message-ID: <20111220173531.1f2b788d@wker> (raw)
In-Reply-To: <8A6AE127-0EBD-4945-AD91-45B1FDDEAAED@boeing.com>
On Tue, 20 Dec 2011 10:19:51 -0600
"Moffett, Kyle D" <Kyle.D.Moffett@boeing.com> wrote:
> On Dec 20, 2011, at 07:29, Anatolij Gustschin wrote:
> > Fix:
> > e1000_spi.c: In function 'spi_free_slave':
> > e1000_spi.c:115: warning: unused variable 'hw'
> > e1000_spi.c: In function 'do_e1000_spi':
> > e1000_spi.c:472: warning: 'checksum' may be used uninitialized in this function
> > e1000_spi.c:472: note: 'checksum' was declared here
>
> Acked-by: Kyle Moffett <Kyle.D.Moffett@boeing.com>
>
> This is great, thanks!
>
> I actually thought that the "checksum" fix had already made it
> into Wolfgang's tree, but I can't find it now that I'm looking
> for it.
There is a "checksum" fix in Wolfgang's tree, commit 7a341066
(e1000: fix bugs from recent commits). It is for drivers/net/e1000.c
file, however.
> The really frustrating thing is that on my test system I have
> seen the "unused variable" warning for a while now (although I
> was not sure what to do about it), but despite the fact that
> the "checksum" variable is very clearly improperly initialized
> I don't get that warning out of my compiler.
>
> Oh, right, I'm using GCC 4.4 right now and it needs 4.6+
I've seen this warning with GCC 4.2.2 and GCC 4.6.1.
Thanks,
Anatolij
next prev parent reply other threads:[~2011-12-20 16:35 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-20 12:29 [U-Boot] [PATCH] drivers/net/e1000_spi.c: Fix build warnings Anatolij Gustschin
2011-12-20 16:19 ` Moffett, Kyle D
2011-12-20 16:35 ` Anatolij Gustschin [this message]
2011-12-20 17:19 ` Mike Frysinger
2011-12-20 22:13 ` 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=20111220173531.1f2b788d@wker \
--to=agust@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