Re: [PATCH] object: require maximal alignment in base class

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

 



On 12/13/2013 03:22 AM, Michal Privoznik wrote:
> On 13.12.2013 00:07, Eric Blake wrote:
>> Recent changes to events (commit 8a29ffcf) resulted in new compile
>> failures on some targets (such as ARM OMAP5):
>> conf/domain_event.c: In function 'virDomainEventDispatchDefaultFunc':
>> conf/domain_event.c:1198:30: error: cast increases required alignment of
>> target type [-Werror=cast-align]

>> * src/util/virobject.h (_virObject): Use a union to ensure that
>> subclasses never have stricter alignment than the parent.
>> * src/util/virobject.c (virObjectNew, virObjectUnref)
>> (virObjectRef): Adjust clients.
>> * src/libvirt.c (virConnectRef, virDomainRef, virNetworkRef)
>> (virInterfaceRef, virStoragePoolRef, virStorageVolRef)
>> (virNodeDeviceRef, virSecretRef, virStreamRef, virNWFilterRef)
>> (virDomainSnapshotRef): Likewise.
>> * src/qemu/qemu_monitor.c (qemuMonitorOpenInternal)
>> (qemuMonitorClose): Likewise.
>>

> Beside the comment above union I got the same diff. I did compile check
> on my armv6l box and it passed.
> 
> ACK

Thanks for the testing; patch now pushed.

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

Attachment: signature.asc
Description: OpenPGP digital signature

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