Page MenuHomeFreeBSD

freebsd: Use compiler.h from FreeBSD's base's linuxkpi
Needs ReviewPublic

Authored by imp on Jul 25 2024, 11:53 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Sep 15, 1:05 AM
Unknown Object (File)
Wed, Sep 11, 8:05 PM
Unknown Object (File)
Mon, Sep 9, 1:14 AM
Unknown Object (File)
Mon, Sep 9, 12:26 AM
Unknown Object (File)
Sat, Sep 7, 7:59 PM
Unknown Object (File)
Sat, Sep 7, 11:39 AM
Unknown Object (File)
Tue, Sep 3, 5:26 AM
Unknown Object (File)
Jul 28 2024, 4:13 AM
Subscribers
This revision needs review, but there are no reviewers specified.

Details

Reviewers
None
Summary

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.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 58865
Build 55752: arc lint + arc unit