From patchwork Thu Sep 1 09:08:25 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Beulich X-Patchwork-Id: 9308623 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 69FB7607D2 for ; Thu, 1 Sep 2016 09:10:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 580DA2925E for ; Thu, 1 Sep 2016 09:10:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4AEDA292B0; Thu, 1 Sep 2016 09:10:36 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 491C5292AE for ; Thu, 1 Sep 2016 09:10:34 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bfNz3-0000Oi-Tc; Thu, 01 Sep 2016 09:08:29 +0000 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 Received: from [85.158.139.211] by server-7.bemta-5.messagelabs.com id 30/88-05127-B00F7C75; Thu, 01 Sep 2016 09:08:27 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrMIsWRWlGSWpSXmKPExsXS6fjDS5f7w/F wgwvfOC2+b5nM5MDocfjDFZYAxijWzLyk/IoE1ozW3g6Wgj2iFd0zXzI3MK4V6mLk4BASyJNY fNmyi5GTg1fATmL6289MILaEgKHE0/fX2UBsFgFVibvz+xhBbDYBdYm2Z9tZQVpFBAwkzh1NA jGZBfQltq1jAakQFrCV6N68iAkkzCsgKPF3hzBImBlo+Iuj8xgnMHLNQsjMQpKBsLUkHv66xQ Jha0ssW/iaeRbYfGmJ5f84IMLmEh17drOiKgGxnSSut99lXMDIsYpRozi1qCy1SNfIQC+pKDM 9oyQ3MTNH19DAVC83tbg4MT01JzGpWC85P3cTIzDw6hkYGHcwNs72O8QoycGkJMqrFnc8XIgv KT+lMiOxOCO+qDQntfgQowwHh5IEb8s7oJxgUWp6akVaZg4wBmDSEhw8SiK8t94CpXmLCxJzi zPTIVKnGBWlxHl7QPoEQBIZpXlwbbC4u8QoKyXMy8jAwCDEU5BalJtZgir/ilGcg1FJmHcCyB SezLwSuOmvgBYzAS0uuQa2uCQRISXVwMgh9cnG4T7zy/pv5atiYlxZr06rbGGtq9mdv4UjS35 Hyol9f1sX/06fqWoo9GzveRbFkISJezfKe375dtbwWUurkub1XXx5ub/Zr+04/PrKlm1Jd5p+ PwqbFBHM/J9vpbKeq1Lwb6kni0uXbeR1iZubLlZbKzRFwr5e+InrpydXnrn45re6HFViKc5IN NRiLipOBACAjoaWtgIAAA== X-Env-Sender: JBeulich@suse.com X-Msg-Ref: server-3.tower-206.messagelabs.com!1472720905!53657743!1 X-Originating-IP: [137.65.248.74] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 8.84; banners=-,-,- X-VirusChecked: Checked Received: (qmail 33223 invoked from network); 1 Sep 2016 09:08:26 -0000 Received: from prv-mh.provo.novell.com (HELO prv-mh.provo.novell.com) (137.65.248.74) by server-3.tower-206.messagelabs.com with DHE-RSA-AES256-GCM-SHA384 encrypted SMTP; 1 Sep 2016 09:08:26 -0000 Received: from INET-PRV-MTA by prv-mh.provo.novell.com with Novell_GroupWise; Thu, 01 Sep 2016 03:08:24 -0600 Message-Id: <57C80C29020000780010AC34@prv-mh.provo.novell.com> X-Mailer: Novell GroupWise Internet Agent 14.2.1 Date: Thu, 01 Sep 2016 03:08:25 -0600 From: "Jan Beulich" To: "xen-devel" Mime-Version: 1.0 Cc: Andrew Cooper Subject: [Xen-devel] [PATCH] x86: drop leftover uses of regparm attribute X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP These were relevant only for 32-bit builds on Xen. Signed-off-by: Jan Beulich x86: drop leftover uses of regparm attribute 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 } /* 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); void (*pv_post_outb_hook)(unsigned int port, u8 value); @@ -2262,7 +2260,7 @@ static int emulate_privileged_op(struct : (*(u16 *)®s->reg = (val))) unsigned long code_base, code_limit; char *io_emul_stub = 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; Reviewed-by: Andrew Cooper --- a/xen/arch/x86/traps.c +++ b/xen/arch/x86/traps.c @@ -2200,10 +2200,8 @@ void guest_io_write(unsigned int port, u } /* 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); void (*pv_post_outb_hook)(unsigned int port, u8 value); @@ -2262,7 +2260,7 @@ static int emulate_privileged_op(struct : (*(u16 *)®s->reg = (val))) unsigned long code_base, code_limit; char *io_emul_stub = 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;