1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-12 09:58:36 +00:00

Fix gcc build for cxgbe(4)

Reviewed by:	jhb
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D20879
This commit is contained in:
Li-Wen Hsu 2019-07-08 19:59:15 +00:00
parent eeacb3b02f
commit 57f0337a57
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=349847

View File

@ -1985,7 +1985,7 @@ alloc_aiotx_mbuf(struct kaiocb *job, int len)
last = NULL;
while (len > 0) {
mlen = imin(len, MBUF_PEXT_MAX_PGS * PAGE_SIZE - pgoff);
KASSERT(mlen == len || (start + mlen & PAGE_MASK) == 0,
KASSERT(mlen == len || ((start + mlen) & PAGE_MASK) == 0,
("%s: next start (%#jx + %#x) is not page aligned",
__func__, (uintmax_t)start, mlen));