All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] libxc xc_ptrace gcc 4 fix
@ 2005-03-30 20:40 Jerone Young
  0 siblings, 0 replies; only message in thread
From: Jerone Young @ 2005-03-30 20:40 UTC (permalink / raw)
  To: xen-devel

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

Variable guest_va is declared as a long* . It takes values that are cast
as unsigned long* . GCC 4 picks up on this. This patch changes the
declaration of guest va to be an unsigned long* and fixes the problem.

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: xc_ptrace_gcc_4_fix.diff --]
[-- Type: text/x-patch, Size: 379 bytes --]

--- tools/libxc/xc_ptrace.c.orig	2005-03-30 14:30:15.000000000 -0600
+++ tools/libxc/xc_ptrace.c	2005-03-30 14:33:13.000000000 -0600
@@ -238,7 +238,7 @@ xc_ptrace(enum __ptrace_request request,
     xc_domaininfo_t info;
     struct gdb_regs pt;
     long retval = 0;
-    long *guest_va;
+    unsigned long *guest_va;
 
     op.interface_version = DOM0_INTERFACE_VERSION;
     

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

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-03-30 20:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-30 20:40 [PATCH] libxc xc_ptrace gcc 4 fix Jerone Young

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.