From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jerone Young Subject: [PATCH] libxc xc_ptrace gcc 4 fix Date: Wed, 30 Mar 2005 14:40:45 -0600 Message-ID: <1112215245.5657.5.camel@thinkpad> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-BaftfjxxemvgFggZAw7o" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel List-Id: xen-devel@lists.xenproject.org --=-BaftfjxxemvgFggZAw7o Content-Type: text/plain Content-Transfer-Encoding: 7bit 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 -- Jerone Young IBM Linux Technology Center jyoung5@us.ibm.com 512-838-1157 (T/L: 678-1157) --=-BaftfjxxemvgFggZAw7o Content-Disposition: attachment; filename=xc_ptrace_gcc_4_fix.diff Content-Type: text/x-patch; name=xc_ptrace_gcc_4_fix.diff; charset=UTF-8 Content-Transfer-Encoding: 7bit --- 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; --=-BaftfjxxemvgFggZAw7o Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --=-BaftfjxxemvgFggZAw7o--