diff options
Diffstat (limited to 'config/kernel-mkdir-umode-t.m4')
-rw-r--r-- | config/kernel-mkdir-umode-t.m4 | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/config/kernel-mkdir-umode-t.m4 b/config/kernel-mkdir-umode-t.m4 index dd5d94ba9..634260b3c 100644 --- a/config/kernel-mkdir-umode-t.m4 +++ b/config/kernel-mkdir-umode-t.m4 @@ -10,12 +10,16 @@ AC_DEFUN([ZFS_AC_KERNEL_MKDIR_UMODE_T], [ AC_MSG_CHECKING([whether iops->create()/mkdir()/mknod() take umode_t]) ZFS_LINUX_TRY_COMPILE([ #include <linux/fs.h> - ],[ - int (*mkdir) (struct inode *,struct dentry *,umode_t) = NULL; - struct inode_operations iops __attribute__ ((unused)) = { + + int mkdir(struct inode *inode, struct dentry *dentry, + umode_t umode) { return 0; } + + static const struct inode_operations + iops __attribute__ ((unused)) = { .mkdir = mkdir, }; ],[ + ],[ AC_MSG_RESULT(yes) AC_DEFINE(HAVE_MKDIR_UMODE_T, 1, [iops->create()/mkdir()/mknod() take umode_t]) |