From: "Jan Beulich" Subject: [PATCH] ia64: fix gcc 4.5 warnings Date: Mon, 20 Sep 2010 14:34:18 +0100 Message-ID: <4C977EFA0200007800017BD2@vpn.id2.novell.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=__Part1B36CDCA.0__=" 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@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org This is a MIME message. If you are reading this text, you may want to consider changing to a mail reader or gateway that understands how to properly handle MIME multipart messages. --=__Part1B36CDCA.0__= Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Signed-off-by: Jan Beulich --- 2010-09-20.orig/xen/arch/ia64/xen/domain.c 2010-08-06 08:44:33.0000000= 00 +0200 +++ 2010-09-20/xen/arch/ia64/xen/domain.c 2010-09-20 11:01:55.0000000= 00 +0200 @@ -565,7 +565,7 @@ static void init_switch_stack(struct vcp { struct pt_regs *regs =3D vcpu_regs (v); struct switch_stack *sw =3D (struct switch_stack *) regs - 1; - extern void ia64_ret_from_clone; + extern char ia64_ret_from_clone; =20 memset(sw, 0, sizeof(struct switch_stack) + sizeof(struct = pt_regs)); sw->ar_bspstore =3D (unsigned long)vcpu_to_rbs_bottom(v); @@ -728,7 +728,7 @@ vcpu_to_switch_stack(struct vcpu* v) static int vcpu_has_not_run(struct vcpu* v) { - extern void ia64_ret_from_clone; + extern char ia64_ret_from_clone; struct switch_stack *sw =3D vcpu_to_switch_stack(v); =20 return (sw =3D=3D (struct switch_stack *)(vcpu_regs(v)) - 1) && --- 2010-09-20.orig/xen/arch/ia64/xen/machine_kexec.c 2010-09-20 = 11:00:48.000000000 +0200 +++ 2010-09-20/xen/arch/ia64/xen/machine_kexec.c 2010-09-20 = 10:59:09.000000000 +0200 @@ -104,7 +104,7 @@ void machine_reboot_kexec(xen_kexec_imag =20 static int machine_kexec_get_xen(xen_kexec_range_t *range) { - range->start =3D range->start =3D ia64_tpa(_text); + range->start =3D ia64_tpa(_text); range->size =3D (unsigned long)_end - (unsigned long)_text; return 0; } --=__Part1B36CDCA.0__= Content-Type: text/plain; name="ia64-gcc-4-5-warnings.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="ia64-gcc-4-5-warnings.patch" Signed-off-by: Jan Beulich =0A=0A--- 2010-09-20.orig/x= en/arch/ia64/xen/domain.c 2010-08-06 08:44:33.000000000 +0200=0A+++ = 2010-09-20/xen/arch/ia64/xen/domain.c 2010-09-20 11:01:55.000000000 = +0200=0A@@ -565,7 +565,7 @@ static void init_switch_stack(struct vcp=0A = {=0A struct pt_regs *regs =3D vcpu_regs (v);=0A struct switch_stack= *sw =3D (struct switch_stack *) regs - 1;=0A- extern void ia64_ret_from_c= lone;=0A+ extern char ia64_ret_from_clone;=0A =0A memset(sw, = 0, sizeof(struct switch_stack) + sizeof(struct pt_regs));=0A sw->ar_bsps= tore =3D (unsigned long)vcpu_to_rbs_bottom(v);=0A@@ -728,7 +728,7 @@ = vcpu_to_switch_stack(struct vcpu* v)=0A static int=0A vcpu_has_not_run(stru= ct vcpu* v)=0A {=0A- extern void ia64_ret_from_clone;=0A+ extern = char ia64_ret_from_clone;=0A struct switch_stack *sw =3D vcpu_to_switch_= stack(v);=0A =0A return (sw =3D=3D (struct switch_stack *)(vcpu_regs= (v)) - 1) &&=0A--- 2010-09-20.orig/xen/arch/ia64/xen/machine_kexec.c = 2010-09-20 11:00:48.000000000 +0200=0A+++ 2010-09-20/xen/arch/ia64/xen/mach= ine_kexec.c 2010-09-20 10:59:09.000000000 +0200=0A@@ -104,7 +104,7 @@ = void machine_reboot_kexec(xen_kexec_imag=0A =0A static int machine_kexec_ge= t_xen(xen_kexec_range_t *range)=0A {=0A- range->start =3D range->sta= rt =3D ia64_tpa(_text);=0A+ range->start =3D ia64_tpa(_text);=0A = range->size =3D (unsigned long)_end - (unsigned long)_text;=0A return = 0;=0A }=0A --=__Part1B36CDCA.0__= 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 --=__Part1B36CDCA.0__=--