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 20, 12:07 AM
Unknown Object (File)
Sat, Apr 18, 9:25 PM
Unknown Object (File)
Sat, Apr 18, 6:55 PM
Unknown Object (File)
Sat, Apr 18, 5:19 PM
Unknown Object (File)
Sat, Apr 18, 5:18 PM
Unknown Object (File)
Mon, Apr 13, 4:08 AM
Unknown Object (File)
Mon, Apr 13, 12:51 AM
Unknown Object (File)
Mon, Apr 13, 12:35 AM
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