aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/aha
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2026-09-18 07:07:46 +0000
committerDimitry Andric <dim@FreeBSD.org>2026-09-20 07:01:47 +0000
commitaca53fc2a6879f45dcbe1a60f91f14a5f6d48448 (patch)
tree569d88edc53654091189e18015f3493f3d03062c /sys/dev/aha
parenteca31490322f181a415c14c6bf03e656e81fb4aa (diff)
Fix statement with no effect in linuxkpi's xarray.hHEADmain
When compiling the kernel with gcc 14, errors similar to the following are emitted: sys/dev/cxgbe/iw_cxgbe/ev.c: In function 'c4iw_ev_handler': sys/compat/linuxkpi/common/include/linux/xarray.h:132:23: error: statement with no effect [-Werror=unused-value] 132 | flags == 0; \ sys/dev/cxgbe/iw_cxgbe/ev.c:274:17: note: in expansion of macro 'xa_unlock_irqrestore' 274 | xa_unlock_irqrestore(&dev->cqs, flag); | ^~~~~~~~~~~~~~~~~~~~ sys/compat/linuxkpi/common/include/linux/xarray.h:132:23: error: statement with no effect [-Werror=unused-value] 132 | flags == 0; \ sys/dev/cxgbe/iw_cxgbe/ev.c:283:17: note: in expansion of macro 'xa_unlock_irqrestore' 283 | xa_unlock_irqrestore(&dev->cqs, flag); | ^~~~~~~~~~~~~~~~~~~~ It looks like the intent of the "flags == 0" statement was to make the 'flags' macro argument not unused, but it still results in a warning. Use the construct "(void)flags" instead. Reviewed by: bz MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D59787
Diffstat (limited to 'sys/dev/aha')
0 files changed, 0 insertions, 0 deletions