mirror_zfs/include/os/freebsd
Warner Losh 38a04f0a7c
freebsd: Use compiler.h from FreeBSD's base's linuxkpi
The FreeBSD linux/compiler.h in OpenZFS was copied from a very old
version of FreeBSD's linuxkpi's linux/compiler.h. There's no need for
this duplication. Use FreeBSD's linuxkpi version instead, and provide
zfs_fallthrough to augment it (it's all that's needed). Use #pragma once
to avoid naming issues for guard variables. Since this is a complete
rewrite, use my copyright here (the original code in FreeBSD still
credits everybody). This works back at least to FreeBSD 12.4, which
is not out of support, and all newer releases.

Remove extra copies of macros that were defined elsewhere, but are now
properly defined in LinuxKPI so are redundant.

Sponsored-by: Netflix
Reviewed-by: Tony Hutter <hutter2@llnl.gov>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Warner Losh <imp@bsdimp.com>
Closes #16650
2024-10-16 13:00:40 -04:00
..
linux freebsd: Use compiler.h from FreeBSD's base's linuxkpi 2024-10-16 13:00:40 -04:00
spl freebsd: Use compiler.h from FreeBSD's base's linuxkpi 2024-10-16 13:00:40 -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