Re: [PATCH 3/4] util: Introduce virNumaNodesetToCPUset()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 2019-06-03 at 14:13 +0200, Ján Tomko wrote:
> On Fri, May 31, 2019 at 05:22:01PM +0200, Andrea Bolognani wrote:
> > +int
> > +virNumaNodesetToCPUset(virBitmapPtr nodeset,
> > +                       virBitmapPtr *cpuset)
> 
> I'd prefer the output argument to be first - see VIR_STRDUP.
> But I have no stats about which style is prevailing.

The name of the function is virNumaNodesetToCPUset(), so having the
cpuset argument first and the nodeset argument second would be very
confusing :)

> > +int
> > +virNumaNodesetToCPUset(virBitmapPtr nodeset,
> > +                       virBitmapPtr *cpuset)
> > +{
> 
> util/virnuma.c:399:37: error: unused parameter 'nodeset' [-Werror,-Wunused-parameter]
> virNumaNodesetToCPUset(virBitmapPtr nodeset,
>                                     ^
> 1 error generated.

Good catch, compiler! Fixed it locally.

-- 
Andrea Bolognani / Red Hat / Virtualization

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux