HomeFreeBSD

openzfs/freebsd: Use compiler.h from FreeBSD's base's linuxkpi

Description

openzfs/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).

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

This is currently pull request #16650 upstream. Committing now to get
wider testing (make universe works, but historically doesn't catch all
errors).

Sponsored by: Netflix
Reviewed by: brooks
Differential Revision: https://reviews.freebsd.org/D47131

Details

Provenance
impAuthored on Oct 15 2024, 7:49 PM
Reviewer
brooks
Differential Revision
D47131: openzfs/freebsd: Use compiler.h from FreeBSD's base's linuxkpi
Parents
rGb34a4edefb0a: bhyve: avoid buffer overflow in pci_vtcon_control_send
Branches
Unknown
Tags
Unknown