Page MenuHomeFreeBSD

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

Authored by imp on Oct 15 2024, 5:17 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Jan 2, 8:25 AM
Unknown Object (File)
Dec 11 2024, 9:08 AM
Unknown Object (File)
Dec 9 2024, 4:13 AM
Unknown Object (File)
Nov 24 2024, 7:34 PM
Unknown Object (File)
Nov 23 2024, 12:25 AM
Unknown Object (File)
Nov 21 2024, 3:56 PM
Unknown Object (File)
Nov 3 2024, 9:33 PM
Unknown Object (File)
Oct 24 2024, 8:52 AM
Subscribers

Details

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.

This is currently pull request #16650 upstream. Committing now to get
wider testing (though it surves Universe well enough for me).

Sponsored by: Netflix

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable