From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dario Faggioli Subject: Re: [PATCH v10 10/11] libxl/xl: make it possible to specify soft-affinity in domain config file Date: Fri, 27 Jun 2014 15:07:51 +0200 Message-ID: <1403874471.8515.20.camel@Solace> References: <20140620161751.450.15846.stgit@Solace> <20140620162011.450.68818.stgit@Solace> <1403873270.3169.22.camel@kazak.uk.xensource.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6780219328326487168==" Return-path: In-Reply-To: <1403873270.3169.22.camel@kazak.uk.xensource.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: Ian Campbell Cc: Andrew.Cooper3@citrix.com, xen-devel@lists.xen.org, Wei Liu , Ian.Jackson@citrix.com List-Id: xen-devel@lists.xenproject.org --===============6780219328326487168== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-a6ZdEmmBfZI+WlASbjYI" --=-a6ZdEmmBfZI+WlASbjYI Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On ven, 2014-06-27 at 13:47 +0100, Ian Campbell wrote: > On Fri, 2014-06-20 at 18:20 +0200, Dario Faggioli wrote: > > + /* > > + * If buf2 is not initialized above, gcc >=3D 4.9.0 complains = with > > + * a '[-Werror=3Dmaybe-uninitialized]'. That can't happen, tho= ugh, since > > + * we use buf2 only if buf is NULL, and if we are here and buf= is NULL, > > + * it means buf2 is non-NULL, and contains the j-eth element o= f the > > + * list, as per the condition of the while(). >=20 > You state that buf2 is non NULL only if buf is NULL (buf2 !=3D NULL =3D> = buf > =3D=3D NULL). But the logic here is based on the inverse (buf =3D=3D NULL= =3D> > buf2 !=3D NULL). >=20 > I haven't read the code carefully to decide if you actually meant "we > use buf2 only iff buf is NULL". >=20 Ok, I'll improve the comment for v11... > A comment about a workaround such as this belongs next to the > workaround, i.e. next to the spurious looking =3D NULL. No need to then > back reference it. >=20 ... and I will put it close to there. Thanks, Dario --=20 <> (Raistlin Majere) ----------------------------------------------------------------- Dario Faggioli, Ph.D, http://about.me/dario.faggioli Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK) --=-a6ZdEmmBfZI+WlASbjYI Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iEYEABECAAYFAlOtbKcACgkQk4XaBE3IOsT3awCfeI1UVJLL63aIStgQg6pJUuhy oX8AnjTFYEj5ObrEUkNwN3DWLfLYqZbi =sWck -----END PGP SIGNATURE----- --=-a6ZdEmmBfZI+WlASbjYI-- --===============6780219328326487168== 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 --===============6780219328326487168==--