From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Subject: Re: [PATCH 2/3] tools/libxc: Properly quote macro parameters Date: Fri, 8 May 2015 14:26:25 +0100 Message-ID: <1431091585.2660.446.camel@citrix.com> References: <1431089675-31163-1-git-send-email-andrew.cooper3@citrix.com> <1431089675-31163-3-git-send-email-andrew.cooper3@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1431089675-31163-3-git-send-email-andrew.cooper3@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Andrew Cooper Cc: Wei Liu , Yang Hongyang , Ian Jackson , Xen-devel List-Id: xen-devel@lists.xenproject.org On Fri, 2015-05-08 at 13:54 +0100, Andrew Cooper wrote: > Signed-off-by: Andrew Cooper > CC: Ian Campbell > CC: Ian Jackson > CC: Wei Liu > CC: Yang Hongyang > --- > tools/libxc/include/xenctrl.h | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/tools/libxc/include/xenctrl.h b/tools/libxc/include/xenctrl.h > index 6994c51..fc880e1 100644 > --- a/tools/libxc/include/xenctrl.h > +++ b/tools/libxc/include/xenctrl.h > @@ -270,7 +270,7 @@ struct xc_hypercall_buffer { > * transparently converted to the hypercall buffer as necessary. > */ > #define DECLARE_HYPERCALL_BUFFER(_type, _name) \ > - _type *_name = NULL; \ > + _type *(_name) = NULL; \ > xc_hypercall_buffer_t XC__HYPERCALL_BUFFER_NAME(_name) = { \ > .hbuf = NULL, \ > .param_shadow = NULL, \ > @@ -288,10 +288,10 @@ struct xc_hypercall_buffer { > * required. > */ > #define DECLARE_HYPERCALL_BUFFER_SHADOW(_type, _name, _hbuf) \ > - _type *_name = _hbuf->hbuf; \ > + _type *(_name) = (_hbuf)->hbuf; \ This seems to be the only one which matters in practice, but it's good manners, so: Acked-by: Ian Campbell