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

View File

@ -291,8 +291,7 @@ 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;
inode_init_once(&fsi->vfs_inode);
@ -303,7 +302,7 @@ 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);
SLAB_HWCACHE_ALIGN, (void *)&fpgafs_init_once);
if(!fpgafs_inode_cache)
return -ENOMEM;