fs/nfs/nfs4proc.c: make nfs4_map_errors() static
Subsystems (2)
PATCH 1/1 fs/nfs/nfs4proc.c: make nfs4_map_errors() static
nfs4_map_errors() can become static.
---
fs/nfs/nfs4_fs.h +0 -1
@@ -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 *);
fs/nfs/nfs4proc.c +1 -1
@@ -69,7 +69,7 @@ static int _nfs4_proc_lookup(struct inode *dir, const struct qstr *name, structstatic 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",
J. Bruce Fields
AppliedQuoted 5 lines · On Thu, Dec 25, 2008 at 09:55:23PM +0000, Am=C3=A9rico Wang wrote:
=20
nfs4_map_errors()can become static.
=20Signed-off-by WANG Cong <[email protected]>Cc J. Bruce Fields <[email protected]>
Thanks, applied for 2.6.29.--b.
fs/nfs/nfs4_fs.h extern ssize_t nfs4_listxattr(struct dentry *, ch=
Quoted 7 lines
=20
---fs/nfs/nfs4_fs.h +0
-0@@ -174,7 +174,6 @@ extern ssize_t nfs4_listxattr(struct dentry *, ch=
ar *, size_t);
Quoted 5 lines
=20
=20
/*nfs4proc.c*/
-extern intnfs4_map_errors(int err);
extern int nfs4_proc_setclientid(structnfs_client*, u32, unsigned =
short, struct rpc_cred *);
Quoted 1 line
extern int nfs4_proc_setclientid_confirm(struct
nfs_client*, struct=
rpc_cred *);
Quoted 1 line
extern int nfs4_proc_async_renew(struct
nfs_client*, struct rpc_cre=
d *);
fs/nfs/nfs4proc.c static int _nfs4_proc_lookup(struct inode *dir, con=
Quoted 5 lines
fs/nfs/nfs4proc.c +0
-0@@ -69,7 +69,7 @@ static int _nfs4_proc_lookup(struct inode *dir, con=
st struct qstr *name, struct
fs/nfs/nfs4proc.c static int _nfs4_proc_lookup(struct inode *dir, con= · line 69
Quoted 1 line
fs/nfs/nfs4proc.c +0
-0static int _nfs4_proc_getattr(struct nfs_server *server, struct nfs_=
fh *fhandle, struct nfs_fattr *fattr);
Quoted 8 lines
=20
/* Prevent leaks of NFSv4 errors into userland */fs/nfs/nfs4proc.c +1
-1-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