fix kmem_cache_create compiling error.

This commit is contained in:
Benjamin Krill 2008-11-08 11:58:12 +01:00
parent a3e583faac
commit 04660bc897
1 changed files with 4 additions and 5 deletions

View File

@ -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;