From: "J. Bruce Fields" Subject: Re: [Patch] fs/nfs/nfs4proc.c: make nfs4_map_errors() static Date: Thu, 1 Jan 2009 19:11:16 -0500 Message-ID: <20090102001116.GB31840@fieldses.org> References: <20081225215523.GH3130@hack.private> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Cc: LKML , linux-nfs@vger.kernel.org, Andrew Morton To: =?utf-8?Q?Am=C3=A9rico?= Wang Return-path: Received: from mail.fieldses.org ([141.211.133.115]:52333 "EHLO fieldses.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754006AbZABALS (ORCPT ); Thu, 1 Jan 2009 19:11:18 -0500 In-Reply-To: <20081225215523.GH3130-2ZPHldtDychwKoX9GjgWag@public.gmane.org> Sender: linux-nfs-owner@vger.kernel.org List-ID: On Thu, Dec 25, 2008 at 09:55:23PM +0000, Am=C3=A9rico Wang wrote: >=20 > nfs4_map_errors() can become static. >=20 > Signed-off-by: WANG Cong > Cc: J. Bruce Fields Thanks, applied for 2.6.29.--b. >=20 > --- > diff --git a/fs/nfs/nfs4_fs.h b/fs/nfs/nfs4_fs.h > index ea79064..b8fb6a6 100644 > --- a/fs/nfs/nfs4_fs.h > +++ b/fs/nfs/nfs4_fs.h > @@ -174,7 +174,6 @@ extern ssize_t nfs4_listxattr(struct dentry *, ch= ar *, size_t); > =20 > =20 > /* nfs4proc.c */ > -extern int nfs4_map_errors(int err); > extern int nfs4_proc_setclientid(struct nfs_client *, u32, unsigned = short, struct rpc_cred *); > extern int nfs4_proc_setclientid_confirm(struct nfs_client *, struct= rpc_cred *); > extern int nfs4_proc_async_renew(struct nfs_client *, struct rpc_cre= d *); > diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c > index 83e700a..91e46ec 100644 > --- a/fs/nfs/nfs4proc.c > +++ b/fs/nfs/nfs4proc.c > @@ -69,7 +69,7 @@ static int _nfs4_proc_lookup(struct inode *dir, con= st struct qstr *name, struct > static int _nfs4_proc_getattr(struct nfs_server *server, struct nfs_= fh *fhandle, struct nfs_fattr *fattr); > =20 > /* Prevent leaks of NFSv4 errors into userland */ > -int nfs4_map_errors(int err) > +static int nfs4_map_errors(int err) > { > if (err < -1000) { > dprintk("%s could not handle NFSv4 error %d\n", >=20