summaryrefslogtreecommitdiffstats
path: root/src/ioq.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2024-02-16 13:44:04 -0500
committerTavian Barnes <tavianator@tavianator.com>2024-02-16 13:44:04 -0500
commitc749c11b04444ca40941dd2ddc5802faed148f6a (patch)
treecb293e353b84dc0c19cea3c1df7229312d711706 /src/ioq.c
parent60fb65a75147a0d703842b412effdf8ca6ae2169 (diff)
downloadbfs-c749c11b04444ca40941dd2ddc5802faed148f6a.tar.xz
ioq: Ensure ioq_ent is sufficiently aligned
The natural alignment of struct ioq_ent is only 2 on m68k, so over-align it to at least 4 bytes on all platforms. Link: https://buildd.debian.org/status/fetch.php?pkg=bfs&arch=m68k&ver=3.1-1&stamp=1707699583
Diffstat (limited to 'src/ioq.c')
-rw-r--r--src/ioq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ioq.c b/src/ioq.c
index cf0b927..f23b62f 100644
--- a/src/ioq.c
+++ b/src/ioq.c
@@ -177,7 +177,7 @@ typedef atomic uintptr_t ioq_slot;
#define IOQ_SKIP_ONE (~IOQ_BLOCKED)
// Need room for two flag bits
-bfs_static_assert(alignof(struct ioq_ent) > 2);
+bfs_static_assert(alignof(struct ioq_ent) >= (1 << 2));
/**
* An MPMC queue of I/O commands.