git: 616f47f176c3 - main - tunefs: Fix alignment warning on arm64
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 02 Apr 2026 21:24:46 UTC
The branch main has been updated by des:
URL: https://cgit.FreeBSD.org/src/commit/?id=616f47f176c308a29b1f4a6bba1b1a4dc01c3091
commit 616f47f176c308a29b1f4a6bba1b1a4dc01c3091
Author: Dag-Erling Smørgrav <des@FreeBSD.org>
AuthorDate: 2026-04-02 21:23:47 +0000
Commit: Dag-Erling Smørgrav <des@FreeBSD.org>
CommitDate: 2026-04-02 21:23:47 +0000
tunefs: Fix alignment warning on arm64
MFC after: 1 week
Fixes: c5e79c7e93dd ("tunefs: Don't lower WARNS")
Reviewed by: bakul
Differential Revision: https://reviews.freebsd.org/D56229
---
sbin/tunefs/tunefs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sbin/tunefs/tunefs.c b/sbin/tunefs/tunefs.c
index d0f506557d65..56f343a5a4db 100644
--- a/sbin/tunefs/tunefs.c
+++ b/sbin/tunefs/tunefs.c
@@ -855,7 +855,7 @@ indir_fill(ufs2_daddr_t blk, int level, int *resid)
int i;
bzero(indirbuf, sizeof(indirbuf));
- bap1 = (ufs1_daddr_t *)indirbuf;
+ bap1 = (ufs1_daddr_t *)(uintptr_t)indirbuf;
bap2 = (void *)bap1;
cnt = 0;
for (i = 0; i < NINDIR(&sblock) && *resid != 0; i++) {