[libvirt] [PATCH 3/8] cpu: Fix PowerPCNodeData

Eric Blake eblake at redhat.com
Sat Dec 22 04:54:54 UTC 2012


On 12/20/2012 05:01 PM, Jiri Denemark wrote:
> Make getting node CPU data for PowerPC unsupported on other
> architectures. The function is also renamed as ppcNodeData to match
> other functions in PowerPC CPU driver.
> ---
>  src/cpu/cpu_powerpc.c | 26 ++++++++++----------------
>  1 file changed, 10 insertions(+), 16 deletions(-)
> 

> @@ -633,7 +623,11 @@ struct cpuArchDriver cpuDriverPowerPC = {
>      .decode     = PowerPCDecode,
>      .encode     = NULL,
>      .free       = PowerPCDataFree,
> -    .nodeData   = PowerPCNodeData,
> +#if defined(__powerpc__) || defined(__powerpc64__)
> +    .nodeData   = ppcNodeData,
> +#else
> +    .nodeData   = NULL,
> +#endif

Technically, you can omit the #else branch, as all members of C99
initialization that are not specified are left 0-initialized; but I'm
okay if you don't want to change this.

ACK.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20121221/975cba35/attachment-0001.sig>


More information about the libvir-list mailing list