]> git.proxmox.com Git - mirror_zfs.git/blame - config/kernel-rename.m4
Linux 5.0 compat: ASM_BUG macro
[mirror_zfs.git] / config / kernel-rename.m4
CommitLineData
b8d9e264
CC
1dnl #
2dnl # 4.9 API change,
3dnl # iops->rename2() merged into iops->rename(), and iops->rename() now wants
4dnl # flags.
5dnl #
6AC_DEFUN([ZFS_AC_KERNEL_RENAME_WANTS_FLAGS], [
7 AC_MSG_CHECKING([whether iops->rename() wants flags])
8 ZFS_LINUX_TRY_COMPILE([
9 #include <linux/fs.h>
10 int rename_fn(struct inode *sip, struct dentry *sdp,
11 struct inode *tip, struct dentry *tdp,
12 unsigned int flags) { return 0; }
13
14 static const struct inode_operations
15 iops __attribute__ ((unused)) = {
16 .rename = rename_fn,
17 };
18 ],[
19 ],[
20 AC_MSG_RESULT(yes)
21 AC_DEFINE(HAVE_RENAME_WANTS_FLAGS, 1, [iops->rename() wants flags])
22 ],[
23 AC_MSG_RESULT(no)
24 ])
25])