From: Wei Liu Subject: Re: Comments on LIBXL_HAVE_* defines (Was: Re: [PATCH V5 01/32] libxl: make cpupool_qualifier_to_cpupoolid a library function) Date: Wed, 28 May 2014 00:04:48 +0100 Message-ID: <20140527230448.GB30121@zion.uk.xensource.com> References: <1400018054-26038-1-git-send-email-wei.liu2@citrix.com> <1400018054-26038-2-git-send-email-wei.liu2@citrix.com> <1400171325.883.18.camel@kazak.uk.xensource.com> <21371.27406.226242.217059@mariner.uk.xensource.com> <20140520172411.GB21047@zion.uk.xensource.com> <1400661451.6946.118.camel@kazak.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <1400661451.6946.118.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: Ian Jackson , Wei Liu , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Wed, May 21, 2014 at 09:37:31AM +0100, Ian Campbell wrote: > On Tue, 2014-05-20 at 18:24 +0100, Wei Liu wrote: > > I will have the following snippet in libxl.h > > > > /* LIBXL_HAVE_CPUPOOL_QUALIFIER_TO_CPUPOOLID > > * > > * If this is defined, libxl has a library function called > > * libxl_cpupool_qualifier_to_cpupoolid, which takes in a CPU pool > > * qualifier in the form of number or string, then returns the ID of > > * that CPU pool. > > */ > > #define LIBXL_HAVE_CPUPOOL_QUALIFIER_TO_CPUPOOLID 1 > > I have a more general comment/thought about these LIBXL_HAVE comments. > We've gotten into this pattern of adding a little bit of commentary to > these comments (I think just because the first one happened too look > this way) which either duplicate things which seem more or less obvious > (LIBXL_HAVE_FOO_BAR => The struct FOO has a field BAR) or, worse, add > documentation of that field which really belongs at the site of the > field definition not here. > > Does anyone else thing that the comments associated with these defines > should be terse and/or non-existent and that the bulk of most of them > belongs next to the definition of the field/function in question? > I don't object to eliminating these comments, but I don't see problem with the way it is now either... Wei. > NB: I'm in no way suggesting that anything in this series needs to > change because of this... > > Ian.