From 71db907e7b0406d8441e9051413b38de7da20bd2 Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Thu, 18 Oct 2007 15:54:55 -0400 Subject: [PATCH] Unionfs: slab api remove useless ctor parameter and reorder parameters fs/unionfs/super.c: In function 'unionfs_init_inode_cache': fs/unionfs/super.c:874: warning: passing argument 5 of 'kmem_cache_create' from incompatible pointer type Cc: Christoph Lameter Cc: Josef 'Jeff' Sipek Signed-off-by: Andrew Morton Signed-off-by: Erez Zadok --- fs/unionfs/super.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/unionfs/super.c b/fs/unionfs/super.c index 515689d9553..7d28045bdda 100644 --- a/fs/unionfs/super.c +++ b/fs/unionfs/super.c @@ -863,9 +863,9 @@ static void unionfs_destroy_inode(struct inode *inode) } /* unionfs inode cache constructor */ -static void init_once(void *v, struct kmem_cache *cachep, unsigned long flags) +static void init_once(struct kmem_cache *cachep, void *obj) { - struct unionfs_inode_info *i = v; + struct unionfs_inode_info *i = obj; inode_init_once(&i->vfs_inode); } -- 2.43.0