2008-02-13 21:41:47

by Adrian Bunk

[permalink] [raw]
Subject: [2.6 patch] make nfsd_create_setattr() static

This patch makes the needlessly global nfsd_create_setattr() static.

Signed-off-by: Adrian Bunk <[email protected]>

---
7cfb17a22a0cf76477fbf1fbe6bf586108a13a44 diff --git a/fs/nfsd/vfs.c b/fs/nfsd/vfs.c
index cc75e4f..035204f 100644
--- a/fs/nfsd/vfs.c
+++ b/fs/nfsd/vfs.c
@@ -1151,7 +1151,7 @@ nfsd_commit(struct svc_rqst *rqstp, struct svc_fh *fhp,
}
#endif /* CONFIG_NFSD_V3 */

-__be32
+static __be32
nfsd_create_setattr(struct svc_rqst *rqstp, struct svc_fh *resfhp,
struct iattr *iap)
{


2008-02-13 21:59:29

by J. Bruce Fields

[permalink] [raw]
Subject: Re: [2.6 patch] make nfsd_create_setattr() static

On Wed, Feb 13, 2008 at 11:30:26PM +0200, Adrian Bunk wrote:
> This patch makes the needlessly global nfsd_create_setattr() static.
>
> Signed-off-by: Adrian Bunk <[email protected]>

Thanks, applied.--b.

>
> ---
> 7cfb17a22a0cf76477fbf1fbe6bf586108a13a44 diff --git a/fs/nfsd/vfs.c b/fs/nfsd/vfs.c
> index cc75e4f..035204f 100644
> --- a/fs/nfsd/vfs.c
> +++ b/fs/nfsd/vfs.c
> @@ -1151,7 +1151,7 @@ nfsd_commit(struct svc_rqst *rqstp, struct svc_fh *fhp,
> }
> #endif /* CONFIG_NFSD_V3 */
>
> -__be32
> +static __be32
> nfsd_create_setattr(struct svc_rqst *rqstp, struct svc_fh *resfhp,
> struct iattr *iap)
> {
>