All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jerone Young <jyoung5@us.ibm.com>
To: xen-devel <xen-devel@lists.xensource.com>
Subject: minor gcc4 fixes
Date: Mon, 11 Apr 2005 13:36:49 -0500	[thread overview]
Message-ID: <1113244609.5172.4.camel@thinkpad> (raw)

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

These patches initialize unsigned longs that are used in xen. GCC4
complains about using unsigned longs that are not initialized before
use.

Signed-off-by: Jerone Young <jyoung5@us.ibm.com>
-- 
Jerone Young
IBM Linux Technology Center
jyoung5@us.ibm.com
512-838-1157 (T/L: 678-1157)

[-- Attachment #2: gcc4_fix_1.diff --]
[-- Type: text/x-patch, Size: 522 bytes --]

--- xen/common/grant_table.c.old	2005-04-11 12:02:40.000000000 -0500
+++ xen/common/grant_table.c	2005-04-11 12:03:37.000000000 -0500
@@ -311,7 +311,8 @@ __gnttab_map_grant_ref(
     struct exec_domain   *led;
     u16                   dev_hst_ro_flags;
     int                   handle;
-    unsigned long         frame, host_virt_addr;
+    unsigned long         host_virt_addr = 0;
+    unsigned long         frame = 0;
     int                   rc;
 
     /* Returns 0 if TLB flush / invalidate required by caller.

[-- Attachment #3: gcc4_fix_2.diff --]
[-- Type: text/x-patch, Size: 442 bytes --]

--- xen/arch/x86/shadow.c.old	2005-04-11 12:04:20.000000000 -0500
+++ xen/arch/x86/shadow.c	2005-04-11 12:05:41.000000000 -0500
@@ -1594,7 +1594,8 @@ static inline unsigned long
 shadow_make_snapshot(
     struct domain *d, unsigned long gpfn, unsigned long gmfn)
 {
-    unsigned long smfn, sl1mfn;
+    unsigned long smfn = 0; 
+    unsigned long sl1mfn = 0;
     void *original, *snapshot;
     u32 min_max = 0;
     int min, max, length;

[-- Attachment #4: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

             reply	other threads:[~2005-04-11 18:36 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-11 18:36 Jerone Young [this message]
  -- strict thread matches above, loose matches on Subject: below --
2005-04-11 18:57 minor gcc4 fixes Ian Pratt
2005-04-11 19:44 ` Jerone Young

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=1113244609.5172.4.camel@thinkpad \
    --to=jyoung5@us.ibm.com \
    --cc=xen-devel@lists.xensource.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 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.