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)
Sun, May 11, 6:09 AM
Unknown Object (File)
Wed, May 7, 4:32 AM
Unknown Object (File)
Fri, Apr 25, 5:15 AM
Unknown Object (File)
Wed, Apr 23, 9:21 PM
Unknown Object (File)
Mon, Apr 21, 7:53 AM
Unknown Object (File)
Sat, Apr 19, 8:30 PM
Unknown Object (File)
Apr 15 2025, 4:22 PM
Unknown Object (File)
Apr 15 2025, 12:16 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