From 04660bc8972f8fd7763e3137e5dcad1ba1f7f64b Mon Sep 17 00:00:00 2001 From: Benjamin Krill Date: Sat, 8 Nov 2008 11:58:12 +0100 Subject: [PATCH] fix kmem_cache_create compiling error. --- inode.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/inode.c b/inode.c index db92b44..6470566 100644 --- a/inode.c +++ b/inode.c @@ -291,10 +291,9 @@ static struct file_system_type fpgafs_type = { .kill_sb = kill_anon_super }; -static void fpgafs_init_once(void *p, struct kmem_cache * cachep, - unsigned long flags) +static void fpgafs_init_once(void *p) { - struct fpgafs_inode_info *fsi = p; + struct fpgafs_inode_info *fsi = p; inode_init_once(&fsi->vfs_inode); } @@ -302,8 +301,8 @@ static void fpgafs_init_once(void *p, struct kmem_cache * cachep, int __init fpgafs_init(void) { fpgafs_inode_cache = kmem_cache_create("fpgafs_inode_cache", - sizeof(struct fpgafs_inode_info), 0, - SLAB_HWCACHE_ALIGN, fpgafs_init_once, NULL); + sizeof(struct fpgafs_inode_info), 0, + SLAB_HWCACHE_ALIGN, (void *)&fpgafs_init_once); if(!fpgafs_inode_cache) return -ENOMEM;