Page MenuHomeFreeBSD

Fix gcc build for cxgbe(4)
ClosedPublic

Authored by lwhsu on Jul 8 2019, 11:57 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Nov 25, 7:21 PM
Unknown Object (File)
Nov 4 2024, 10:02 AM
Unknown Object (File)
Oct 4 2024, 3:54 AM
Unknown Object (File)
Sep 27 2024, 9:54 PM
Unknown Object (File)
Sep 27 2024, 7:12 PM
Unknown Object (File)
Sep 27 2024, 8:24 AM
Unknown Object (File)
Sep 26 2024, 2:56 PM
Unknown Object (File)
Sep 26 2024, 2:53 AM
Subscribers

Details

Summary

On https://ci.freebsd.org/job/FreeBSD-head-amd64-gcc/10647/console:

--- all_subdir_cxgbe ---
In file included from /usr/home/lwhsu/freebsd-src/sys/dev/cxgbe/tom/t4_cpl_io.c:30:0:
/usr/home/lwhsu/freebsd-src/sys/dev/cxgbe/tom/t4_cpl_io.c: In function 'alloc_aiotx_mbuf':
/usr/home/lwhsu/freebsd-src/sys/dev/cxgbe/tom/t4_cpl_io.c:1988:33: error: suggest parentheses around '+' in operand of '&' [-Werror=parentheses]
   KASSERT(mlen == len || (start + mlen & PAGE_MASK) == 0,
                           ~~~~~~^~~
/usr/home/lwhsu/freebsd-src/sys/sys/cdefs.h:455:51: note: in definition of macro '__predict_false'
 #define __predict_false(exp)    __builtin_expect((exp), 0)
                                                   ^~~
/usr/home/lwhsu/freebsd-src/sys/dev/cxgbe/tom/t4_cpl_io.c:1988:3: note: in expansion of macro 'KASSERT'
   KASSERT(mlen == len || (start + mlen & PAGE_MASK) == 0,
   ^~~~~~~
Test Plan

make -DNO_CLEAN CROSS_TOOLCHAIN=amd64-gcc buildworld buildkernel

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable