mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
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 50a61f8db5)
This commit is contained in:
parent
0a55a5bf61
commit
ae0219c10f
1 changed files with 1 additions and 1 deletions
|
|
@ -2696,7 +2696,7 @@ fwohci_get_plen(struct fwohci_softc *sc, struct fwohci_dbch *dbch, struct fw_pkt
|
|||
info = &tinfo[fp->mode.common.tcode];
|
||||
r = info->hdr_len + sizeof(uint32_t);
|
||||
if ((info->flag & FWTI_BLOCK_ASY) != 0)
|
||||
r += roundup2(fp->mode.wreqb.len, sizeof(uint32_t));
|
||||
r += roundup2((uint32_t)fp->mode.wreqb.len, sizeof(uint32_t));
|
||||
|
||||
if (r == sizeof(uint32_t)) {
|
||||
/* XXX */
|
||||
|
|
|
|||
Loading…
Reference in a new issue