diff --git a/src/utils/os_unix.c b/src/utils/os_unix.c index e4259042a..089b880bd 100644 --- a/src/utils/os_unix.c +++ b/src/utils/os_unix.c @@ -36,7 +36,7 @@ struct os_alloc_trace { struct dl_list list; size_t len; WPA_TRACE_INFO -}; +} __attribute__((aligned(16))); #endif /* WPA_TRACE */ diff --git a/src/utils/wpabuf.c b/src/utils/wpabuf.c index 7aafa0a51..11e732361 100644 --- a/src/utils/wpabuf.c +++ b/src/utils/wpabuf.c @@ -17,7 +17,7 @@ struct wpabuf_trace { unsigned int magic; -}; +} __attribute__((aligned(8))); static struct wpabuf_trace * wpabuf_get_trace(const struct wpabuf *buf) {