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 .kill_sb = kill_anon_super
}; };
static void fpgafs_init_once(void *p, struct kmem_cache * cachep, static void fpgafs_init_once(void *p)
unsigned long flags)
{ {
struct fpgafs_inode_info *fsi = p; struct fpgafs_inode_info *fsi = p;
inode_init_once(&fsi->vfs_inode); 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) int __init fpgafs_init(void)
{ {
fpgafs_inode_cache = kmem_cache_create("fpgafs_inode_cache", fpgafs_inode_cache = kmem_cache_create("fpgafs_inode_cache",
sizeof(struct fpgafs_inode_info), 0, sizeof(struct fpgafs_inode_info), 0,
SLAB_HWCACHE_ALIGN, fpgafs_init_once, NULL); SLAB_HWCACHE_ALIGN, (void *)&fpgafs_init_once);
if(!fpgafs_inode_cache) if(!fpgafs_inode_cache)
return -ENOMEM; return -ENOMEM;