HomeFreeBSD

Introduce ZFS_LINUX_REQUIRE_API autoconf macro

Description

Introduce ZFS_LINUX_REQUIRE_API autoconf macro

Currently, if API tests fail, we either ignore the failures, or
unconditionally halt the kernel build. This leads to situations where
incompatibilities with existing APIs may develop, but not trip the
configure compatibility checks.

This introduces a new mechanism to require APIs for kernels above a
particular version. While not perfect, this at least guarantees
mainline kernels do not break existing APIs without at least providing
some warning.

Reviewed-by: Richard Yao <richard.yao@alumni.stonybrook.edu>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Antonio Russo <aerusso@aerusso.net>
Closes #14343

Details

Provenance
Antonio Russo <aerusso@aerusso.net>Authored on Jan 5 2023, 4:41 AM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Jan 10 2023, 4:43 PM
Parents
rG3c0b8c874bff: linux 6.2 compat: bio->bi_rw was renamed bio->bi_opf
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG3e0962a236d9: Introduce ZFS_LINUX_REQUIRE_API autoconf macro (authored by Antonio Russo <aerusso@aerusso.net>).Jan 10 2023, 4:43 PM