Page MenuHomeFreeBSD

tunefs: Fix pointer arithmetic
ClosedPublic

Authored by des on Apr 10 2026, 3:15 PM.
Tags
None
Referenced Files
F156614307: D56343.diff
Fri, May 15, 3:24 AM
F156526585: D56343.id175235.diff
Thu, May 14, 10:31 AM
F156499888: D56343.id175234.diff
Thu, May 14, 4:08 AM
Unknown Object (File)
Thu, May 14, 2:54 AM
Unknown Object (File)
Wed, May 13, 4:27 PM
Unknown Object (File)
Mon, May 11, 11:43 PM
Unknown Object (File)
Mon, May 11, 11:46 AM
Unknown Object (File)
Sat, May 9, 7:13 AM
Subscribers

Details

Summary

While here, remove a bogus const which has been there for years.

MFC after: 1 week
Reported by: ivy@
Fixes: 1b83e8a3f840 ("Constify string pointers.")
Fixes: 8244dd326265 ("tunefs: Better fix for arm64 alignment issues")

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 72111
Build 68994: arc lint + arc unit

Event Timeline

des requested review of this revision.Apr 10 2026, 3:15 PM
olce added inline comments.
sbin/tunefs/tunefs.c
717

Could you please remove as well the (uintptr_t) conversion that I suspect was here just to circumvent the bogus const in the signature?

des marked an inline comment as done.Apr 10 2026, 3:52 PM
des added inline comments.
sbin/tunefs/tunefs.c
717

No, it was added last week to suppress an alignment warning and is still needed.

des marked an inline comment as done.Apr 10 2026, 4:06 PM
This revision is now accepted and ready to land.Apr 11 2026, 4:41 PM
This revision was automatically updated to reflect the committed changes.