X-Git-Url: https://git.camperquake.de/gitweb.cgi?a=blobdiff_plain;f=config%2Fkernel-lookup-nameidata.m4;h=645560398c32c48c400168b9fb063d7b576c1169;hb=c61f97f426b7e0bc106b7e6795d4ea2ecbd2384d;hp=5e30be4335bf44574dd0cac7294b7d5d84265bbe;hpb=8f195a908ffaa8faf8f4c8a0e701e44ae3859e33;p=zfs.git diff --git a/config/kernel-lookup-nameidata.m4 b/config/kernel-lookup-nameidata.m4 index 5e30be4..6455603 100644 --- a/config/kernel-lookup-nameidata.m4 +++ b/config/kernel-lookup-nameidata.m4 @@ -5,13 +5,17 @@ AC_DEFUN([ZFS_AC_KERNEL_LOOKUP_NAMEIDATA], [ AC_MSG_CHECKING([whether iops->lookup() takes struct nameidata]) ZFS_LINUX_TRY_COMPILE([ #include - ],[ - struct dentry * (*inode_lookup) (struct inode *,struct dentry *, - struct nameidata *) = NULL; - struct inode_operations iops __attribute__ ((unused)) = { - .lookup = inode_lookup, + + struct dentry *inode_lookup(struct inode *inode, + struct dentry *dentry, struct nameidata *nidata) + { return NULL; } + + static const struct inode_operations iops + __attribute__ ((unused)) = { + .lookup = inode_lookup, }; ],[ + ],[ AC_MSG_RESULT(yes) AC_DEFINE(HAVE_LOOKUP_NAMEIDATA, 1, [iops->lookup() operation takes nameidata])