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)
(cherry picked from commit ae0219c10fe3a2ea9caa7bc88ddc7d0a7e988efd)

Details

Provenance
jhbAuthored on Feb 17 2021, 9:12 PM
dimCommitted on Aug 31 2021, 7:56 PM
Reviewer
arichardson
Differential Revision
D28599: fwohci: Cast bitfield to uint32_t before passing it to roundup2().
Parents
rG3b2ae1c2bbfb: Expose clang's alignment builtins and use them for roundup2/rounddown2
Branches
Unknown
Tags
Unknown