Page MenuHomeFreeBSD

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

Authored by imp on Jul 25 2024, 11:53 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Oct 24, 9:02 AM
Unknown Object (File)
Mon, Oct 21, 7:09 PM
Unknown Object (File)
Sun, Oct 20, 10:28 AM
Unknown Object (File)
Sun, Oct 20, 1:46 AM
Unknown Object (File)
Oct 4 2024, 10:06 AM
Unknown Object (File)
Oct 4 2024, 1:54 AM
Unknown Object (File)
Oct 3 2024, 6:51 PM
Unknown Object (File)
Oct 1 2024, 5:19 PM
Subscribers

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 58839
Build 55726: arc lint + arc unit