[libvirt PATCH] conf: fix alignment in virObjectEvent to be 8 not 4 bytes

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

 



The previous fix accidentally picked up a debug change that put
alignment back at 4, not 8, bytes as it claimed:

  commit 37ae0426420a2f682cc96ee457a8cae9c0db27d3
  Author: Daniel P. Berrangé <berrange@xxxxxxxxxx>
  Date:   Wed Jun 3 11:18:23 2020 +0100

    conf: force 8 byte alignment for virObjectEvent

Signed-off-by: Daniel P. Berrangé <berrange@xxxxxxxxxx>
---

Pushed under the face-palm build breaker fix rule

 src/conf/object_event_private.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/conf/object_event_private.h b/src/conf/object_event_private.h
index 126464a9a5..80af043b9b 100644
--- a/src/conf/object_event_private.h
+++ b/src/conf/object_event_private.h
@@ -42,7 +42,7 @@ typedef void
                               virConnectObjectEventGenericCallback cb,
                               void *cbopaque);
 
-struct  __attribute__((aligned(4))) _virObjectEvent {
+struct  __attribute__((aligned(8))) _virObjectEvent {
     virObject parent;
     int eventID;
     virObjectMeta meta;
-- 
2.26.2




[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