From mboxrd@z Thu Jan 1 00:00:00 1970 From: Erez Zadok Subject: [PATCH 2/9] Unionfs: slab api remove useless ctor parameter and reorder parameters Date: Sun, 21 Oct 2007 19:51:15 -0400 Message-ID: <11930106834106-git-send-email-ezk@cs.sunysb.edu> References: <11930106823372-git-send-email-ezk@cs.sunysb.edu> Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, viro@ftp.linux.org.uk, hch@infradead.org, Christoph Lameter , "Josef 'Jeff' Sipek" , Andrew Morton , "Josef 'Jeff' Sipek" , Erez Zadok To: akpm@linux-foundation.org Return-path: Received: from filer.fsl.cs.sunysb.edu ([130.245.126.2]:49209 "EHLO filer.fsl.cs.sunysb.edu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751551AbXJUXvu (ORCPT ); Sun, 21 Oct 2007 19:51:50 -0400 In-Reply-To: <11930106823372-git-send-email-ezk@cs.sunysb.edu> Sender: linux-fsdevel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org From: Andrew Morton 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 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/unionfs/super.c b/fs/unionfs/super.c index 515689d..7d28045 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); } -- 1.5.2.2