Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

freebsd: Use compiler.h from FreeBSD's base's linuxkpi #16650

Merged
merged 1 commit into from
Oct 16, 2024

Commits on Oct 14, 2024

  1. 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
    Signed-off-by:		Warner Losh <imp@bsdimp.com>
    bsdimp committed Oct 14, 2024
    Configuration menu
    Copy the full SHA
    f90dfb5 View commit details
    Browse the repository at this point in the history