Page MenuHomeFreeBSD

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

Authored by arybchik on Jul 26 2019, 3:02 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Apr 14, 8:01 PM
Unknown Object (File)
Mon, Apr 13, 5:59 PM
Unknown Object (File)
Mon, Apr 6, 2:32 PM
Unknown Object (File)
Fri, Apr 3, 9:36 PM
Unknown Object (File)
Fri, Apr 3, 8:15 PM
Unknown Object (File)
Wed, Apr 1, 2:16 PM
Unknown Object (File)
Tue, Mar 31, 9:53 PM
Unknown Object (File)
Sat, Mar 28, 4:58 PM
Subscribers

Details

Summary

Substitute driver-defined P2ROUNDUP() h with EFX_P2ROUNDUP()
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 25515
Build 24133: arc lint + arc unit