HomeFreeBSD

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

Description

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

Substitute driver-defined P2ROUNDUP() h with EFX_P2ROUNDUP()
defined in libefx.

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

Reported by: Andrea Valsania <andrea.valsania at answervad.it>
Reviewed by: philip
Sponsored by: Solarflare Communications, Inc.
MFC after: 2 days
Differential Revision: https://reviews.freebsd.org/D21074

Details

Provenance
arybchikAuthored on
Reviewer
philip
Differential Revision
D21074: sfxge(4): fix power of 2 round up when align has smaller type
Parents
rS350368: Merge in an up to date kernel from head.
Branches
Unknown
Tags
Unknown