Page MenuHomeFreeBSD

sfxge(4): fix align to power of 2 when align has smaller type
ClosedPublic

Authored by arybchik on Jul 26 2019, 3:02 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Apr 21, 7:53 AM
Unknown Object (File)
Sat, Apr 19, 8:30 PM
Unknown Object (File)
Tue, Apr 15, 4:22 PM
Unknown Object (File)
Tue, Apr 15, 12:16 PM
Unknown Object (File)
Tue, Apr 15, 7:30 AM
Unknown Object (File)
Tue, Apr 15, 3:36 AM
Unknown Object (File)
Sat, Apr 12, 7:49 AM
Unknown Object (File)
Mar 9 2025, 2:26 PM
Subscribers

Details

Summary

Substitute driver-defined P2ALIGN() with EFX_P2ALIGN() defined in
libefx.

Cast value and alignment to one specified type to guarantee result
correctness.

Sponsored by: Solarflare Communications, Inc.
MFC after: 2 days

Test Plan

amd64 tinderbox build tested

Diff Detail

Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 25516
Build 24134: arc lint + arc unit