--- squashfs3.3/dkms/inode.c.2618 2007-11-14 16:59:40.000000000 +0100 +++ squashfs3.3/dkms/inode.c 2007-11-14 17:03:01.000000000 +0100 @@ -31,7 +31,10 @@ #include <linux/vfs.h> #include <linux/vmalloc.h> #include <linux/smp_lock.h> +#include <linux/version.h> +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 23) #include <linux/exportfs.h> +#endif #include "squashfs.h" @@ -2172,7 +2175,11 @@ static int __init init_inodecache(void) { squashfs_inode_cachep = kmem_cache_create("squashfs_inode_cache", sizeof(struct squashfs_inode_info), 0, +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2, 6, 23) SLAB_HWCACHE_ALIGN|SLAB_RECLAIM_ACCOUNT, init_once); +#else + SLAB_HWCACHE_ALIGN|SLAB_RECLAIM_ACCOUNT, init_once, NULL); +#endif if (squashfs_inode_cachep == NULL) return -ENOMEM; return 0;