Skip to contentSkip to conversation

ia64: fix gcc 4.5 warnings

PATCH New Jan Beulich 1 participant 1 message Sep 20, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ia64: fix gcc 4.5 warnings

xen/arch/ia64/xen/domain.c +2 -2
@@ -565,7 +565,7 @@ static void init_switch_stack(struct vcp
 {
 	struct pt_regs *regs = vcpu_regs (v);
 	struct switch_stack *sw = (struct switch_stack *) regs - 1;
-	extern void ia64_ret_from_clone;
+	extern char ia64_ret_from_clone;
 
 	memset(sw, 0, sizeof(struct switch_stack) + sizeof(struct pt_regs));
 	sw->ar_bspstore = (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 = vcpu_to_switch_stack(v);
 
 	return (sw == (struct switch_stack *)(vcpu_regs(v)) - 1) &&
xen/arch/ia64/xen/machine_kexec.c +1 -1
@@ -104,7 +104,7 @@ void machine_reboot_kexec(xen_kexec_imag
 
 static int machine_kexec_get_xen(xen_kexec_range_t *range)
 {
-	range->start = range->start = ia64_tpa(_text);
+	range->start = ia64_tpa(_text);
 	range->size = (unsigned long)_end - (unsigned long)_text;
 	return 0;
 }
xen/arch/ia64/xen/domain.c +2 -2
@@ -565,7 +565,7 @@ static void init_switch_stack(struct vcp
 {
 	struct pt_regs *regs = vcpu_regs (v);
 	struct switch_stack *sw = (struct switch_stack *) regs - 1;
-	extern void ia64_ret_from_clone;
+	extern char ia64_ret_from_clone;
 
 	memset(sw, 0, sizeof(struct switch_stack) + sizeof(struct pt_regs));
 	sw->ar_bspstore = (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 = vcpu_to_switch_stack(v);
 
 	return (sw == (struct switch_stack *)(vcpu_regs(v)) - 1) &&
xen/arch/ia64/xen/machine_kexec.c +1 -1
@@ -104,7 +104,7 @@ void machine_reboot_kexec(xen_kexec_imag
 
 static int machine_kexec_get_xen(xen_kexec_range_t *range)
 {
-	range->start = range->start = ia64_tpa(_text);
+	range->start = ia64_tpa(_text);
 	range->size = (unsigned long)_end - (unsigned long)_text;
 	return 0;
 }

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel