zed: fix typo in variable ZED_POWER_OFF_ENCLO*US*RE_SLOT_ON_FAULT
[zfs.git] / config / kernel-fadvise.m4
blob08912de16ed8d81a854fe3adf3c6f03c9c9c2a39
1 dnl #
2 dnl # Linux 4.19 API
3 dnl #
4 AC_DEFUN([ZFS_AC_KERNEL_SRC_FADVISE], [
5         ZFS_LINUX_TEST_SRC([file_fadvise], [
6                 #include <linux/fs.h>
8                 static const struct file_operations
9                     fops __attribute__ ((unused)) = {
10                         .fadvise = NULL,
11                 };
12         ],[])
15 AC_DEFUN([ZFS_AC_KERNEL_FADVISE], [
16         AC_MSG_CHECKING([whether fops->fadvise() exists])
17         ZFS_LINUX_TEST_RESULT([file_fadvise], [
18                 AC_MSG_RESULT(yes)
19                 AC_DEFINE(HAVE_FILE_FADVISE, 1, [fops->fadvise() exists])
20         ],[
21                 AC_MSG_RESULT(no)
22         ])