git: af08f29e5fc0 - main - tests/sys/fs/ufs/sync_test.c: hide the alignment warning
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 13 Oct 2026 13:49:57 UTC
The branch main has been updated by kib:
URL: https://cgit.FreeBSD.org/src/commit/?id=af08f29e5fc05d1e67370b36800b20ac95937a51
commit af08f29e5fc05d1e67370b36800b20ac95937a51
Author: Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2026-10-13 12:17:57 +0000
Commit: Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2026-10-13 13:48:52 +0000
tests/sys/fs/ufs/sync_test.c: hide the alignment warning
Reported and tested by: dhw
Fixes: afe1dec7425c ("tests: add UFS synchronous write durability tests")
Sponsored by: The FreeBSD Foundation
---
tests/sys/fs/ufs/sync_test.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/sys/fs/ufs/sync_test.c b/tests/sys/fs/ufs/sync_test.c
index 9adc853affd7..3dfa39e17575 100644
--- a/tests/sys/fs/ufs/sync_test.c
+++ b/tests/sys/fs/ufs/sync_test.c
@@ -223,8 +223,8 @@ ondisk_read(ino_t ino, int lbn, struct ondisk *od)
ATF_REQUIRE(bread(&disk, fsbtodb(fs, ib), buf,
fs->fs_bsize) == fs->fs_bsize);
od->blkno = disk.d_ufs == 1 ?
- ((ufs1_daddr_t *)buf)[lbn - UFS_NDADDR] :
- ((ufs2_daddr_t *)buf)[lbn - UFS_NDADDR];
+ __DECONST(ufs1_daddr_t *, buf)[lbn - UFS_NDADDR] :
+ __DECONST(ufs2_daddr_t *, buf)[lbn - UFS_NDADDR];
}
}