All of lore.kernel.org
 help / color / mirror / Atom feed
From: Dario Faggioli <dario.faggioli@citrix.com>
To: Wei Liu <wei.liu2@citrix.com>
Cc: George.Dunlap@eu.citrix.com, Ian.Jackson@citrix.com,
	xen-devel@lists.xen.org, Ian Campbell <Ian.Campbell@citrix.com>,
	Uma Sharma <uma.sharma523@gmail.com>
Subject: Re: [OPW PATCH] tools/xl: Call init function for libxl_bitmap
Date: Wed, 29 Oct 2014 18:52:44 +0100	[thread overview]
Message-ID: <1414605164.20696.71.camel@Abyss> (raw)
In-Reply-To: <20141020152326.GH19994@zion.uk.xensource.com>


[-- Attachment #1.1: Type: text/plain, Size: 2316 bytes --]

On Mon, 2014-10-20 at 16:23 +0100, Wei Liu wrote:
> On Sun, Oct 19, 2014 at 08:21:01PM +0530, Uma Sharma wrote:
> > This patch calls init function for libxl_bitmap in
> > main_cpupoolnumasplit() and vcpuset()
> > tools/libxl/xl_cmdimpl.c
> > IDL generated libxl types should be used only after calling the init
> > function even if the variable is simply being passed by reference as
> > an output parameter to a libxl function
> > 
> > Signed-off-by: Uma Sharma <uma.sharma523@gmail.com>
> 
> Acked-by: Wei Liu <wei.liu2@citrix.com>

> > diff --git a/tools/libxl/xl_cmdimpl.c b/tools/libxl/xl_cmdimpl.c

> > @@ -4843,7 +4843,8 @@ static void vcpuset(uint32_t domid, const char* nr_vcpus, int check_host)
> >      char *endptr;
> >      unsigned int max_vcpus, i;
> >      libxl_bitmap cpumap;
> > -
> > +    
> > +    libxl_bitmap_init(&cpumap);
>
This is introducing some white space damaging, IMO.

In fact, it seems you are removing a black line, i.e., a line which was
*totally* empty, as it should be, with one which has _only_ 4 white
spaces.

That's kind of common while working on patches, I know, but it's not
what we want.

To avoid sending patches suffering from this issue, you certainly can
configure your editor to properly deal with the Xen coding style. What I
also find really useful is that, if looking at the patch with `git show'
or `stg show', the trailing white spaces are marked in red (yes, you
probably need to configure git for that, but, if you're lucky, that's
already the default for your dev environment).

> > @@ -7254,7 +7255,8 @@ int main_cpupoolnumasplit(int argc, char **argv)
> >      }
> >  
> >      ret = 0;
> > -
> > +    
> > +    libxl_bitmap_init(&cpumap);
>
Same here.

TBH, I'm a bit confused, and am not sure if this is the actual latest
version of this patch. If it's not, sorry for the noise.

Regards,
Dario

> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xen.org
> http://lists.xen.org/xen-devel

-- 
<<This happens because I choose it to happen!>> (Raistlin Majere)
-----------------------------------------------------------------
Dario Faggioli, Ph.D, http://about.me/dario.faggioli
Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK)


[-- Attachment #1.2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 181 bytes --]

[-- Attachment #2: Type: text/plain, Size: 126 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

      reply	other threads:[~2014-10-29 17:52 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-19 14:51 [OPW PATCH] tools/xl: Call init function for libxl_bitmap Uma Sharma
2014-10-20 15:23 ` Wei Liu
2014-10-29 17:52   ` Dario Faggioli [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1414605164.20696.71.camel@Abyss \
    --to=dario.faggioli@citrix.com \
    --cc=George.Dunlap@eu.citrix.com \
    --cc=Ian.Campbell@citrix.com \
    --cc=Ian.Jackson@citrix.com \
    --cc=uma.sharma523@gmail.com \
    --cc=wei.liu2@citrix.com \
    --cc=xen-devel@lists.xen.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.