From: Dave Jones <davej@redhat.com>
To: Stephane Ouellette <ouellettes@videotron.ca>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] Compile warning because of an uninitialized variable
Date: Thu, 18 May 2006 23:59:32 -0400 [thread overview]
Message-ID: <20060519035932.GA30894@redhat.com> (raw)
In-Reply-To: <446D4045.9090304@videotron.ca>
On Thu, May 18, 2006 at 11:49:25PM -0400, Stephane Ouellette wrote:
> Folks,
>
> gcc generates a warning because of an uninitialized variable in
> arch/i386/kernel/cpu/transmeta.c.
> The variable "cpu_freq" is initialized by a call to cpuid(). The following
> patch fixes the warning.
This is a gcc bug. The variable is passed by reference
to a function where the assignment is made.
The second time it's used, if that > 80860002 condition
is satisfied, we *must* have satisfied the previous
check where we made the assignment, as 'max' hasn't changed
between the two checks.
Dave
--
http://www.codemonkey.org.uk
prev parent reply other threads:[~2006-05-19 3:59 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-05-19 3:49 [PATCH] Compile warning because of an uninitialized variable Stephane Ouellette
2006-05-19 3:59 ` Dave Jones [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=20060519035932.GA30894@redhat.com \
--to=davej@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=ouellettes@videotron.ca \
/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.