public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
From: Jesse Barnes <jbarnes@engr.sgi.com>
To: linux-ia64@vger.kernel.org
Subject: [PATCH] sn2: fix warning in prominfo_proc.c
Date: Fri, 10 Sep 2004 22:14:54 +0000	[thread overview]
Message-ID: <200409101514.54621.jbarnes@engr.sgi.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 324 bytes --]

The compiler has no way of knowing whether nentries will be greater than 0, so 
it was generating a warning that qw might be used uninitialized.  Fix it by 
explicitly setting it to 0.  Cc'ing Brian in case he has an internal version 
he'd like to keep in sync.

Signed-off-by: Jesse Barnes <jbarnes@sgi.com>

Thanks,
Jesse

[-- Attachment #2: prominfo-warning-fix.patch --]
[-- Type: text/plain, Size: 363 bytes --]

===== arch/ia64/sn/kernel/sn2/prominfo_proc.c 1.5 vs edited =====
--- 1.5/arch/ia64/sn/kernel/sn2/prominfo_proc.c	2004-08-25 10:27:31 -07:00
+++ edited/arch/ia64/sn/kernel/sn2/prominfo_proc.c	2004-09-10 15:09:28 -07:00
@@ -222,7 +222,7 @@
 {
 	int nentries;
 	int fentry;
-	unsigned long qw;
+	unsigned long qw = 0;
 	int len;
 	nasid_t nasid = NASID_GET(fit);
 

                 reply	other threads:[~2004-09-10 22:14 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=200409101514.54621.jbarnes@engr.sgi.com \
    --to=jbarnes@engr.sgi.com \
    --cc=linux-ia64@vger.kernel.org \
    /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