Page MenuHomeFreeBSD

Use uintptr_t instead of unsigned long for integers holding pointers.
ClosedPublic

Authored by jhb on Dec 11 2020, 9:26 PM.
Tags
None
Referenced Files
F106150669: D27580.diff
Thu, Dec 26, 5:48 AM
Unknown Object (File)
Wed, Dec 4, 2:27 AM
Unknown Object (File)
Wed, Nov 27, 11:57 AM
Unknown Object (File)
Nov 22 2024, 4:20 PM
Unknown Object (File)
Nov 5 2024, 4:59 PM
Unknown Object (File)
Oct 21 2024, 9:17 PM
Unknown Object (File)
Oct 17 2024, 1:47 PM
Unknown Object (File)
Oct 7 2024, 3:56 AM
Subscribers

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 35360
Build 32286: arc lint + arc unit

Event Timeline

jhb requested review of this revision.Dec 11 2020, 9:26 PM

Unions might be better for this, but these casts look good and are a more minimal change.

This revision is now accepted and ready to land.Dec 11 2020, 10:27 PM

Well, the other fix is to use something like __aligned or __alignas, but I went for minimal changes, especially given that this driver is probably not as widely used.

In D27580#616464, @jhb wrote:

Well, the other fix is to use something like __aligned or __alignas, but I went for minimal changes, especially given that this driver is probably not as widely used.

Yea. Makes sense. Likely not that important for this driver.