opnsense-src/sys/compat
Dimitry Andric 4bdad53c24 Fix statement with no effect in linuxkpi's xarray.h
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

(cherry picked from commit aca53fc2a6879f45dcbe1a60f91f14a5f6d48448)
2026-10-07 07:54:13 +02:00
..
freebsd32 kern/proc: expose reaper PID and subtree root in struct kinfo_proc 2026-04-27 04:28:59 +03:00
ia32 imgact: Mark brandinfo and note structures as const 2026-02-01 01:01:08 +08:00
lindebugfs lindebugfs: Pass user buffer pointers to the read/write file operations 2026-04-24 13:49:14 -04:00
linprocfs execve_block(): a mechanism for mutual exclusion with execve() on the process 2026-07-06 10:29:25 +02:00
linsysfs pseudofs: return errors from pfs_create_*() 2025-09-03 21:08:52 -05:00
linux execve_block(): a mechanism for mutual exclusion with execve() on the process 2026-07-06 10:29:25 +02:00
linuxkpi Fix statement with no effect in linuxkpi's xarray.h 2026-10-07 07:54:13 +02:00
x86bios Deprecate contigfree(9) in favour of free(9) 2024-07-26 10:45:01 +00:00