2018-02-07 22:50:24 +03:00
|
|
|
dnl #
|
2022-01-24 22:11:07 +03:00
|
|
|
dnl # 5.17 API: PDE_DATA() renamed to pde_data(),
|
|
|
|
dnl # 359745d78351c6f5442435f81549f0207ece28aa ("proc: remove PDE_DATA() completely")
|
2018-02-07 22:50:24 +03:00
|
|
|
dnl #
|
2019-10-01 22:50:34 +03:00
|
|
|
AC_DEFUN([ZFS_AC_KERNEL_SRC_PDE_DATA], [
|
|
|
|
ZFS_LINUX_TEST_SRC([pde_data], [
|
2018-02-07 22:50:24 +03:00
|
|
|
#include <linux/proc_fs.h>
|
|
|
|
], [
|
2022-01-24 22:11:07 +03:00
|
|
|
pde_data(NULL);
|
2019-10-01 22:50:34 +03:00
|
|
|
])
|
|
|
|
])
|
|
|
|
|
|
|
|
AC_DEFUN([ZFS_AC_KERNEL_PDE_DATA], [
|
2022-01-24 22:11:07 +03:00
|
|
|
AC_MSG_CHECKING([whether pde_data() is lowercase])
|
|
|
|
ZFS_LINUX_TEST_RESULT([pde_data], [
|
2018-02-07 22:50:24 +03:00
|
|
|
AC_MSG_RESULT(yes)
|
2022-01-24 22:11:07 +03:00
|
|
|
AC_DEFINE(SPL_PDE_DATA, pde_data, [pde_data() is pde_data()])
|
|
|
|
], [
|
|
|
|
AC_MSG_RESULT(no)
|
|
|
|
AC_DEFINE(SPL_PDE_DATA, PDE_DATA, [pde_data() is PDE_DATA()])
|
2018-02-07 22:50:24 +03:00
|
|
|
])
|
|
|
|
])
|