3 dnl # The VFS .create, .mkdir and .mknod callbacks were updated to take a
4 dnl # umode_t type rather than an int. The expectation is that any backport
5 dnl # would also change all three prototypes. However, if it turns out that
6 dnl # some distribution doesn't backport the whole thing this could be
7 dnl # broken apart into three separate checks.
9 AC_DEFUN([ZFS_AC_KERNEL_MKDIR_UMODE_T], [
10 AC_MSG_CHECKING([whether iops->create()/mkdir()/mknod() take umode_t])
11 ZFS_LINUX_TRY_COMPILE([
14 int mkdir(struct inode *inode, struct dentry *dentry,
15 umode_t umode) { return 0; }
17 static const struct inode_operations
18 iops __attribute__ ((unused)) = {
24 AC_DEFINE(HAVE_MKDIR_UMODE_T, 1,
25 [iops->create()/mkdir()/mknod() take umode_t])