From 07bd6b1fc99213b14237b97b9fab1f569abac3ab Mon Sep 17 00:00:00 2001 From: Jacek Janczyk Date: Tue, 6 Aug 2013 15:49:28 +0200 Subject: [PATCH] Fix_for_32bit: added data alignment for some kdbus structures Added alignments required by kdbus architecture in structures passed to ioctl. Change-Id: I4ab48709a4f6f43091f3fffa299e75ee1801ccc1 Signed-off-by: Jacek Janczyk --- dbus/dbus-transport-kdbus.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dbus/dbus-transport-kdbus.c b/dbus/dbus-transport-kdbus.c index 7de121e..d07cda1 100644 --- a/dbus/dbus-transport-kdbus.c +++ b/dbus/dbus-transport-kdbus.c @@ -1007,7 +1007,7 @@ out: static int kdbus_read_message(DBusTransportSocket *socket_transport, DBusString *buffer) { int ret_size; - uint64_t offset; + uint64_t __attribute__ ((__aligned__(8))) offset; struct kdbus_msg *msg; char *data; @@ -2395,7 +2395,7 @@ dbus_bool_t bus_register_policy_kdbus(const char* name, DBusConnection *connecti dbus_bool_t bus_register_kdbus(char* name, DBusConnection *connection, DBusError *error) { - struct kdbus_cmd_hello hello; + struct kdbus_cmd_hello __attribute__ ((__aligned__(8))) hello; int fd; memset(&hello, 0, sizeof(hello)); @@ -2659,7 +2659,7 @@ out: void dbus_bus_remove_match_kdbus (DBusConnection *connection, const char *rule, DBusError *error) { - struct kdbus_cmd_match cmd; + struct kdbus_cmd_match __attribute__ ((__aligned__(8))) cmd; int fd; dbus_connection_get_socket(connection, &fd); -- 2.7.4