From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752044AbYLYN45 (ORCPT ); Thu, 25 Dec 2008 08:56:57 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751571AbYLYN4s (ORCPT ); Thu, 25 Dec 2008 08:56:48 -0500 Received: from ti-out-0910.google.com ([209.85.142.185]:44302 "EHLO ti-out-0910.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751524AbYLYN4r (ORCPT ); Thu, 25 Dec 2008 08:56:47 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:mime-version:content-type :content-disposition:user-agent; b=gP6nWgaLSGK2rzovVK04dP7UB9XE4C4f5Q5xDIWnsDYPfTHL2ET9/BW/RQBZ/B4DuA vQYr/5Ecqhn9xRYvM7vZPKYOLnI0/kmCtXP5kDHian3fbPgEYsDOBA799mI7rn1mnqBz 73NYKuXYsSLSugWxRITZteoZZnychG/Lr0zYs= Date: Thu, 25 Dec 2008 21:55:23 +0000 From: =?utf-8?Q?Am=C3=A9rico?= Wang To: LKML Cc: linux-nfs@vger.kernel.org, Andrew Morton , bfields@fieldses.org Subject: [Patch] fs/nfs/nfs4proc.c: make nfs4_map_errors() static Message-ID: <20081225215523.GH3130@hack.private> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org nfs4_map_errors() can become static. Signed-off-by: WANG Cong Cc: J. Bruce Fields --- 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 *, char *, size_t); /* 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_cred *); 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, const struct qstr *name, struct static int _nfs4_proc_getattr(struct nfs_server *server, struct nfs_fh *fhandle, struct nfs_fattr *fattr); /* 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",