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)
Wed, May 20, 3:27 PM
Unknown Object (File)
Mon, May 18, 3:26 PM
Unknown Object (File)
Sat, May 9, 8:00 PM
Unknown Object (File)
Fri, May 8, 3:27 AM
Unknown Object (File)
Sun, May 3, 6:23 PM
Unknown Object (File)
Thu, Apr 30, 7:30 PM
Unknown Object (File)
Thu, Apr 23, 3:50 AM
Unknown Object (File)
Apr 21 2026, 4:28 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

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable