Skip to contentSkip to conversation

fs/nfs/nfs4proc.c: make nfs4_map_errors() static

PATCH Applied Américo Wang 2 participants 2 messages Dec 25, 2008 – Jan 2, 2009

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fs/nfs/nfs4proc.c: make nfs4_map_errors() static

nfs4_map_errors() can become static.

Cc J. Bruce Fields <[email protected]>

---

fs/nfs/nfs4_fs.h +0 -1
index ea79064..b8fb6a6 100644
@@ -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
index 83e700a..91e46ec 100644
@@ -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",
#1 lore raw
Quoted 5 lines · On Thu, Dec 25, 2008 at 09:55:23PM +0000, Am=C3=A9rico Wang wrote:

=20
nfs4_map_errors() can become static.
=20

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
index ea79064..b8fb6a6 100644
@@ -174,7 +174,6 @@ extern ssize_t nfs4_listxattr(struct dentry *, ch=

ar *, size_t);

Quoted 5 lines

=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 *);

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
index 83e700a..91e46ec 100644
@@ -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 -0
 static 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