xref: /freebsd/sys/contrib/openzfs/config/kernel-pde-data.m4 (revision cfd6422a5217410fbd66f7a7a8a64d9d85e61229)
1dnl #
2dnl # 3.10 API change,
3dnl # PDE is replaced by PDE_DATA
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 available])
15	ZFS_LINUX_TEST_RESULT_SYMBOL([pde_data], [PDE_DATA], [], [
16		AC_MSG_RESULT(yes)
17	],[
18		ZFS_LINUX_TEST_ERROR([PDE_DATA])
19	])
20])
21