Re: [libvirt] PATCH: Fix numa build failure on 32-bit f9

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

 



"Daniel P. Berrange" <berrange@xxxxxxxxxx> wrote:
> The automated build on Fedora 9, i386 is currently failing with
>
> cc1: warnings being treated as errors
> nodeinfo.c: In function 'virCapsInitNUMA':
> nodeinfo.c:212: error: passing argument 2 of 'numa_node_to_cpus' from incompatible pointer type
> make[3]: *** [libvirt_driver_la-nodeinfo.lo] Error 1
> make[3]: *** Waiting for unfinished jobs....
>
> The following patch addresses it:

ACK.
That looks right, since it has to match arg2 of this:

  static inline int numa_node_to_cpus_compat(int node, unsigned long *buffer,
                                                          int buffer_len)

At first glance, I had doubts about using the sometimes-narrower type,
but all uses are scaled by "sizeof *mask", so if it weren't for that
prototype, any unsigned type would do.

--
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]