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)
Fri, Dec 27, 11:50 PM
Unknown Object (File)
Tue, Dec 17, 3:44 AM
Unknown Object (File)
Tue, Dec 10, 1:33 AM
Unknown Object (File)
Dec 1 2024, 7:00 PM
Unknown Object (File)
Nov 23 2024, 7:18 AM
Unknown Object (File)
Nov 22 2024, 3:58 PM
Unknown Object (File)
Nov 12 2024, 3:00 AM
Unknown Object (File)
Nov 6 2024, 8:55 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 58865
Build 55752: arc lint + arc unit