X-Git-Url: https://git.camperquake.de/gitweb.cgi?a=blobdiff_plain;f=config%2Fkernel-dentry-operations.m4;h=3182490c908c8737bd33f072efc35cd1dce61d16;hb=d17eeafbf0c680c154ed83cec60112a0b28ae985;hp=dfbea7dfdda4fb6745390c864adc6429c162122d;hpb=ee93035378ff1f0769bb4216dc35057a2f14f9b9;p=zfs.git diff --git a/config/kernel-dentry-operations.m4 b/config/kernel-dentry-operations.m4 index dfbea7d..3182490 100644 --- a/config/kernel-dentry-operations.m4 +++ b/config/kernel-dentry-operations.m4 @@ -5,12 +5,16 @@ AC_DEFUN([ZFS_AC_KERNEL_D_REVALIDATE_NAMEIDATA], [ AC_MSG_CHECKING([whether dops->d_revalidate() takes struct nameidata]) ZFS_LINUX_TRY_COMPILE([ #include - ],[ - int (*revalidate) (struct dentry *, struct nameidata *) = NULL; - struct dentry_operations dops __attribute__ ((unused)) = { - .d_revalidate = revalidate, + + int revalidate (struct dentry *dentry, + struct nameidata *nidata) { return 0; } + + static const struct dentry_operations + dops __attribute__ ((unused)) = { + .d_revalidate = revalidate, }; ],[ + ],[ AC_MSG_RESULT(yes) AC_DEFINE(HAVE_D_REVALIDATE_NAMEIDATA, 1, [dops->d_revalidate() operation takes nameidata])