HomeFreeBSD

fwohci: Cast bitfield to uint32_t before passing it to roundup2().

Description

fwohci: Cast bitfield to uint32_t before passing it to roundup2().

The fallback for align_up() used by roundup2() uses typeof__()
which doesn't work for bitfields. This fixes the build on GCC which
uses the fallback.

Reviewed by: arichardson, markj
Sponsored by: Chelsio Communications
Differential Revision: https://reviews.freebsd.org/D28599

(cherry picked from commit 50a61f8db532676d7dc37410540fff7209b7c072)

Details

Provenance
jhbAuthored on Feb 17 2021, 9:12 PM
arichardsonCommitted on Jul 5 2021, 9:46 AM
Reviewer
arichardson
Differential Revision
D28599: fwohci: Cast bitfield to uint32_t before passing it to roundup2().
Parents
rG0a55a5bf6170: if_vtnet: Fix pointer-sign and used parameter warnings
Branches
Unknown
Tags
Unknown