From: Andrew Morton Date: Thu, 18 Oct 2007 19:54:55 +0000 (-0400) Subject: Unionfs: slab api remove useless ctor parameter and reorder parameters X-Git-Url: https://git.fsl.cs.sunysb.edu/?a=commitdiff_plain;h=11ea9e432b7ff13b637b6ca187af3f23e4dd5084;p=unionfs-3.12.y.git 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 --- diff --git a/fs/unionfs/super.c b/fs/unionfs/super.c index 515689d95530..7d28045bdda1 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); }