From: "Jan Beulich" Subject: [PATCH] arm: fix build after c/s 25477:e12e0b038219 Date: Mon, 25 Jun 2012 11:54:15 +0100 Message-ID: <4FE85F77020000780008BAB7@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=__PartCBE56147.0__=" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel 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. --=__PartCBE56147.0__= Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Only x86 currently has a struct vcpu field arch.gdbsx_vcpu_event. But as the whole function domain_pause_for_debugger() is pointless to be compiled when there's no arch support, simply introduce another HAS_* macro, enabled only on x86. Signed-off-by: Jan Beulich --- a/xen/Rules.mk +++ b/xen/Rules.mk @@ -51,6 +51,7 @@ CFLAGS-$(perfc) +=3D -DPERF_COUNTE CFLAGS-$(perfc_arrays) +=3D -DPERF_ARRAYS CFLAGS-$(lock_profile) +=3D -DLOCK_PROFILE CFLAGS-$(HAS_ACPI) +=3D -DHAS_ACPI +CFLAGS-$(HAS_GDBSX) +=3D -DHAS_GDBSX CFLAGS-$(HAS_PASSTHROUGH) +=3D -DHAS_PASSTHROUGH CFLAGS-$(frame_pointer) +=3D -fno-omit-frame-pointer -DCONFIG_FRAME_POINTE= R =20 --- a/xen/arch/x86/Rules.mk +++ b/xen/arch/x86/Rules.mk @@ -9,6 +9,7 @@ HAS_PASSTHROUGH :=3D y HAS_NS16550 :=3D y HAS_EHCI :=3D y HAS_KEXEC :=3D y +HAS_GDBSX :=3D y xenoprof :=3D y =20 # --- a/xen/common/domain.c +++ b/xen/common/domain.c @@ -612,6 +612,7 @@ void vcpu_end_shutdown_deferral(struct v vcpu_check_shutdown(v); } =20 +#ifdef HAS_GDBSX void domain_pause_for_debugger(void) { struct domain *d =3D current->domain; @@ -628,6 +629,7 @@ void domain_pause_for_debugger(void) if (current->arch.gdbsx_vcpu_event =3D=3D 0) send_global_virq(VIRQ_DEBUGGER); } +#endif =20 /* Complete domain destroy after RCU readers are not holding old = references. */ static void complete_domain_destroy(struct rcu_head *head) --=__PartCBE56147.0__= Content-Type: text/plain; name="arm-build-no-gdbsx.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="arm-build-no-gdbsx.patch" arm: fix build after c/s 25477:e12e0b038219=0A=0AOnly x86 currently has a = struct vcpu field arch.gdbsx_vcpu_event. But=0Aas the whole function = domain_pause_for_debugger() is pointless to be=0Acompiled when there's no = arch support, simply introduce another HAS_*=0Amacro, enabled only on = x86.=0A=0ASigned-off-by: Jan Beulich =0A=0A--- = a/xen/Rules.mk=0A+++ b/xen/Rules.mk=0A@@ -51,6 +51,7 @@ CFLAGS-$(perfc) = +=3D -DPERF_COUNTE=0A CFLAGS-$(perfc_arrays) +=3D -DPERF_ARRAYS=0A = CFLAGS-$(lock_profile) +=3D -DLOCK_PROFILE=0A CFLAGS-$(HAS_ACPI) = +=3D -DHAS_ACPI=0A+CFLAGS-$(HAS_GDBSX) +=3D -DHAS_GDBSX=0A CFLAGS-$(HAS= _PASSTHROUGH) +=3D -DHAS_PASSTHROUGH=0A CFLAGS-$(frame_pointer) +=3D = -fno-omit-frame-pointer -DCONFIG_FRAME_POINTER=0A =0A--- a/xen/arch/x86/Rul= es.mk=0A+++ b/xen/arch/x86/Rules.mk=0A@@ -9,6 +9,7 @@ HAS_PASSTHROUGH :=3D = y=0A HAS_NS16550 :=3D y=0A HAS_EHCI :=3D y=0A HAS_KEXEC :=3D y=0A+HAS_GDBSX= :=3D y=0A xenoprof :=3D y=0A =0A #=0A--- a/xen/common/domain.c=0A+++ = b/xen/common/domain.c=0A@@ -612,6 +612,7 @@ void vcpu_end_shutdown_deferral= (struct v=0A vcpu_check_shutdown(v);=0A }=0A =0A+#ifdef = HAS_GDBSX=0A void domain_pause_for_debugger(void)=0A {=0A struct = domain *d =3D current->domain;=0A@@ -628,6 +629,7 @@ void domain_pause_for_= debugger(void)=0A if (current->arch.gdbsx_vcpu_event =3D=3D 0)=0A = send_global_virq(VIRQ_DEBUGGER);=0A }=0A+#endif=0A =0A /* Complete = domain destroy after RCU readers are not holding old references. */=0A = static void complete_domain_destroy(struct rcu_head *head)=0A --=__PartCBE56147.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.xen.org http://lists.xen.org/xen-devel --=__PartCBE56147.0__=--