xref: /freebsd/sys/contrib/openzfs/config/kernel-pde-data.m4 (revision c03c5b1c80914ec656fbee84539355d1fad68bf9)
1dnl #
2dnl # 5.17 API: PDE_DATA() renamed to pde_data(),
3dnl # 359745d78351c6f5442435f81549f0207ece28aa ("proc: remove PDE_DATA() completely")
4dnl #
5AC_DEFUN([ZFS_AC_KERNEL_SRC_PDE_DATA], [
6	ZFS_LINUX_TEST_SRC([pde_data], [
7		#include <linux/proc_fs.h>
8	], [
9		pde_data(NULL);
10	])
11])
12
13AC_DEFUN([ZFS_AC_KERNEL_PDE_DATA], [
14	AC_MSG_CHECKING([whether pde_data() is lowercase])
15	ZFS_LINUX_TEST_RESULT([pde_data], [
16		AC_MSG_RESULT(yes)
17		AC_DEFINE(SPL_PDE_DATA, pde_data, [pde_data() is pde_data()])
18	], [
19		AC_MSG_RESULT(no)
20		AC_DEFINE(SPL_PDE_DATA, PDE_DATA, [pde_data() is PDE_DATA()])
21	])
22])
23