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)
Sat, Apr 20, 3:42 PM
Unknown Object (File)
Fri, Apr 19, 8:50 PM
Unknown Object (File)
Feb 19 2024, 10:31 PM
Unknown Object (File)
Jan 12 2024, 6:37 PM
Unknown Object (File)
Dec 23 2023, 7:14 PM
Unknown Object (File)
Dec 22 2023, 11:13 PM
Unknown Object (File)
Nov 22 2023, 7:12 AM
Unknown Object (File)
Nov 8 2023, 5:50 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