HomeFreeBSD

MFC r350370

Description

MFC r350370

sfxge(4): fix align to power of 2 when align has smaller type

Substitute driver-defined P2ALIGN() with EFX_P2ALIGN() defined in
libefx.

Cast value and alignment to one specified type to guarantee result
correctness.

Reported by: Andrea Valsania <andrea.valsania at answervad.it>
Sponsored by: Solarflare Communications, Inc.

Details

Provenance
arybchikAuthored on
Parents
rS350405: MFC r350369
Branches
Unknown
Tags
Unknown