From: Arran Cudbard-Bell Date: Thu, 5 May 2022 22:27:21 +0000 (+0200) Subject: Fix atomic queue alignment on 32bit systems X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=88ecc08de4b485663c5ec5d64a69e00142b5dc0b;p=thirdparty%2Ffreeradius-server.git Fix atomic queue alignment on 32bit systems --- diff --git a/src/lib/io/atomic_queue.c b/src/lib/io/atomic_queue.c index af23678ff56..4c9b7eac8ae 100644 --- a/src/lib/io/atomic_queue.c +++ b/src/lib/io/atomic_queue.c @@ -42,8 +42,10 @@ RCSID("$Id$") * on different CPU cores. */ typedef struct CC_HINT(packed, aligned(CACHE_LINE_SIZE)) { + atomic_int64_t seq; //!< Must be seq then data to ensure + ///< seq is 64bit aligned for 32bit address + ///< spaces. void *data; - atomic_int64_t seq; } fr_atomic_queue_entry_t; /** Structure to hold the atomic queue