diff options
author | Antonio Russo <[email protected]> | 2023-01-04 21:41:16 -0700 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2023-01-06 14:33:53 -0800 |
commit | 556ed0953712bd94b49363c7c596d3d8000ff874 (patch) | |
tree | a9c0719a50b61e40a92f733602f4e6e06b44910e /config/kernel-tmpfile.m4 | |
parent | d27c81847b43584483b5509ff352e7e727b0ce87 (diff) |
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 <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Antonio Russo <[email protected]>
Closes #14343
Diffstat (limited to 'config/kernel-tmpfile.m4')
-rw-r--r-- | config/kernel-tmpfile.m4 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/config/kernel-tmpfile.m4 b/config/kernel-tmpfile.m4 index acb7ea1e8..0e1deb361 100644 --- a/config/kernel-tmpfile.m4 +++ b/config/kernel-tmpfile.m4 @@ -60,7 +60,7 @@ AC_DEFUN([ZFS_AC_KERNEL_TMPFILE], [ AC_DEFINE(HAVE_TMPFILE, 1, [i_op->tmpfile() exists]) AC_DEFINE(HAVE_TMPFILE_DENTRY, 1, [i_op->tmpfile() uses old dentry signature]) ],[ - AC_MSG_RESULT(no) + ZFS_LINUX_REQUIRE_API([i_op->tmpfile()], [3.11]) ]) ]) ]) |