From: "Jan Beulich" Subject: [PATCH] x86: drop leftover uses of regparm attribute Date: Thu, 01 Sep 2016 03:08:25 -0600 Message-ID: <57C80C29020000780010AC34@prv-mh.provo.novell.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=__Part11278C19.1__=" Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bfNz2-0000OR-HF for xen-devel@lists.xenproject.org; Thu, 01 Sep 2016 09:08:28 +0000 List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" To: xen-devel Cc: Andrew Cooper 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. --=__Part11278C19.1__= Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline These were relevant only for 32-bit builds on Xen. Signed-off-by: Jan Beulich --- a/xen/arch/x86/traps.c +++ b/xen/arch/x86/traps.c @@ -2200,10 +2200,8 @@ void guest_io_write(unsigned int port, u } =20 /* I/O emulation support. Helper routines for, and type of, the stack = stub.*/ -void host_to_guest_gpr_switch(struct cpu_user_regs *) - __attribute__((__regparm__(1))); -unsigned long guest_to_host_gpr_switch(unsigned long) - __attribute__((__regparm__(1))); +void host_to_guest_gpr_switch(struct cpu_user_regs *); +unsigned long guest_to_host_gpr_switch(unsigned long); =20 void (*pv_post_outb_hook)(unsigned int port, u8 value); =20 @@ -2262,7 +2260,7 @@ static int emulate_privileged_op(struct : (*(u16 *)®s->reg =3D (val))) unsigned long code_base, code_limit; char *io_emul_stub =3D NULL; - void (*io_emul)(struct cpu_user_regs *) __attribute__((__regparm__(1))= ); + void (*io_emul)(struct cpu_user_regs *); uint64_t val; bool_t vpmu_msr; =20 --=__Part11278C19.1__= Content-Type: text/plain; name="x86-drop-regparm.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="x86-drop-regparm.patch" x86: drop leftover uses of regparm attribute=0A=0AThese were relevant only = for 32-bit builds on Xen.=0A=0ASigned-off-by: Jan Beulich =0A=0A--- a/xen/arch/x86/traps.c=0A+++ b/xen/arch/x86/traps.c=0A@@ = -2200,10 +2200,8 @@ void guest_io_write(unsigned int port, u=0A }=0A =0A = /* I/O emulation support. Helper routines for, and type of, the stack = stub.*/=0A-void host_to_guest_gpr_switch(struct cpu_user_regs *)=0A- = __attribute__((__regparm__(1)));=0A-unsigned long guest_to_host_gpr_switch(= unsigned long)=0A- __attribute__((__regparm__(1)));=0A+void host_to_gues= t_gpr_switch(struct cpu_user_regs *);=0A+unsigned long guest_to_host_gpr_sw= itch(unsigned long);=0A =0A void (*pv_post_outb_hook)(unsigned int port, = u8 value);=0A =0A@@ -2262,7 +2260,7 @@ static int emulate_privileged_op(str= uct=0A : (*(u16 *)®s->reg =3D (val)))=0A = unsigned long code_base, code_limit;=0A char *io_emul_stub =3D = NULL;=0A- void (*io_emul)(struct cpu_user_regs *) __attribute__((__regpa= rm__(1)));=0A+ void (*io_emul)(struct cpu_user_regs *);=0A uint64_t = val;=0A bool_t vpmu_msr;=0A =0A --=__Part11278C19.1__= Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KWGVuLWRldmVs IG1haWxpbmcgbGlzdApYZW4tZGV2ZWxAbGlzdHMueGVuLm9yZwpodHRwczovL2xpc3RzLnhlbi5v cmcveGVuLWRldmVsCg== --=__Part11278C19.1__=--