mirror_zfs/include/os/freebsd
Dimitry Andric c480e06d88
Fix gcc unused value warning in FreeBSD simd.h
The macros `simd_stat_init()` and `simd_stat_fini()` in FreeBSD's
`simd.h` are defined as zero, but they are actually only used as
statements. Replace the definitions with `do {} while (0)` instead, to
avoid gcc `-Wunused-value` warnings.

Reviewed-by: Tino Reichardt <milky-zfs@mcmilk.de>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Reviewed-by: Toomas Soome <tsoome@me.com>
Signed-off-by: Dimitry Andric <dimitry@andric.com>
Closes #16693
2024-10-29 14:49:54 -04:00
..
linux freebsd: Use compiler.h from FreeBSD's base's linuxkpi 2024-10-16 13:00:40 -04:00
spl Fix gcc unused value warning in FreeBSD simd.h 2024-10-29 14:49:54 -04:00
zfs/sys FreeBSD: ignore some includes when not building kernel 2024-10-09 09:27:46 -07:00
Makefile.am abd_os: break out platform-specific header parts 2024-08-21 13:37:18 -07:00