From: "Jan Beulich" Subject: [PATCH] x86: drop dummy input from alternative_{input, io}() Date: Fri, 27 Nov 2015 04:52:45 -0700 Message-ID: <5658521D02000078000B9AAA@prv-mh.provo.novell.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=__Part3F083C1D.1__=" Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1a2Ha6-00065Y-3n for xen-devel@lists.xenproject.org; Fri, 27 Nov 2015 11:52:50 +0000 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 Cc: Andrew Cooper , Keir Fraser 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. --=__Part3F083C1D.1__= Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Content-Disposition: inline We don't need the claimed API compatibility. No change in generated code. Signed-off-by: Jan Beulich --- a/xen/include/asm-x86/alternative.h +++ b/xen/include/asm-x86/alternative.h @@ -83,16 +83,15 @@ extern void alternative_instructions(voi * Best is to use constraints that are fixed size (like (%1) ... "r") * If you use variable sized constraints like "m" or "g" in the * replacement make sure to pad to the worst case length. - * Leaving an unused argument 0 to keep API compatibility. */ #define alternative_input(oldinstr, newinstr, feature, input...) \ asm volatile (ALTERNATIVE(oldinstr, newinstr, feature) \ - : : "i" (0), ## input) + : : input) =20 /* Like alternative_input, but with a single output argument */ #define alternative_io(oldinstr, newinstr, feature, output, input...) \ asm volatile (ALTERNATIVE(oldinstr, newinstr, feature) \ - : output : "i" (0), ## input) + : output : input) =20 /* Use this macro(s) if you need more than one output parameter. */ #define ASM_OUTPUT2(a...) a --=__Part3F083C1D.1__= Content-Type: text/plain; name="x86-alt-no-dummy-input.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="x86-alt-no-dummy-input.patch" x86: drop dummy input from alternative_{input,io}()=0A=0AWe don't need the = claimed API compatibility. No change in generated=0Acode.=0A=0ASigned-off-b= y: Jan Beulich =0A=0A--- a/xen/include/asm-x86/alternati= ve.h=0A+++ b/xen/include/asm-x86/alternative.h=0A@@ -83,16 +83,15 @@ = extern void alternative_instructions(voi=0A * Best is to use constraints = that are fixed size (like (%1) ... "r")=0A * If you use variable sized = constraints like "m" or "g" in the=0A * replacement make sure to pad to = the worst case length.=0A- * Leaving an unused argument 0 to keep API = compatibility.=0A */=0A #define alternative_input(oldinstr, newinstr, = feature, input...) \=0A asm volatile (ALTERNATIVE(oldinstr, = newinstr, feature) \=0A- : : "i" (0), ## input)=0A+ = : : input)=0A =0A /* Like alternative_input, but with a = single output argument */=0A #define alternative_io(oldinstr, newinstr, = feature, output, input...) \=0A asm volatile (ALTERNATIVE(oldinstr,= newinstr, feature) \=0A- : output : "i" (0), ## = input)=0A+ : output : input)=0A =0A /* Use this = macro(s) if you need more than one output parameter. */=0A #define = ASM_OUTPUT2(a...) a=0A --=__Part3F083C1D.1__= 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 --=__Part3F083C1D.1__=--