]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - zfs/config/kernel-current-time.m4
media: dvb_ca_en50221: prevent using slot_info for Spectre attacs
[mirror_ubuntu-bionic-kernel.git] / zfs / config / kernel-current-time.m4
CommitLineData
837ca015
CIK
1dnl #
2dnl # 4.9, current_time() added
3dnl #
4AC_DEFUN([ZFS_AC_KERNEL_CURRENT_TIME],
5 [AC_MSG_CHECKING([whether current_time() exists])
6 ZFS_LINUX_TRY_COMPILE_SYMBOL([
7 #include <linux/fs.h>
8 ], [
9 struct inode ip;
10 struct timespec now __attribute__ ((unused));
11
12 now = current_time(&ip);
13 ], [current_time], [fs/inode.c], [
14 AC_MSG_RESULT(yes)
15 AC_DEFINE(HAVE_CURRENT_TIME, 1, [current_time() exists])
16 ], [
17 AC_MSG_RESULT(no)
18 ])
19])