X-Git-Url: https://git.camperquake.de/gitweb.cgi?a=blobdiff_plain;f=config%2Fkernel-evict-inode.m4;h=683cedb6d387a6a41173ea5ae40e345e9e8880fd;hb=c9ada6d5a00ba66fd54d62b4a1684e561fe2c9a4;hp=0700792f93aaf92508c383db400d7cf2041862d7;hpb=ddd052aa8311f846e3d3f7a9ddf1a21d317fb04a;p=zfs.git diff --git a/config/kernel-evict-inode.m4 b/config/kernel-evict-inode.m4 index 0700792..683cedb 100644 --- a/config/kernel-evict-inode.m4 +++ b/config/kernel-evict-inode.m4 @@ -7,12 +7,12 @@ AC_DEFUN([ZFS_AC_KERNEL_EVICT_INODE], [ AC_MSG_CHECKING([whether sops->evict_inode() exists]) ZFS_LINUX_TRY_COMPILE([ #include - ],[ - void (*evict_inode) (struct inode *) = NULL; - struct super_operations sops __attribute__ ((unused)) = { + void evict_inode (struct inode * t) { return; } + static struct super_operations sops __attribute__ ((unused)) = { .evict_inode = evict_inode, }; ],[ + ],[ AC_MSG_RESULT(yes) AC_DEFINE(HAVE_EVICT_INODE, 1, [sops->evict_inode() exists]) ],[