diff options
author | J. Bruce Fields <bfields@redhat.com> | 2013-01-08 22:22:15 +0100 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2013-01-24 00:17:38 +0100 |
commit | 624ab4644819948e9dc87c114201e98f2e52490f (patch) | |
tree | 61f06b057a7422247ac58e9b6667c2a4efc1e51f /net/sunrpc | |
parent | nfsd: Remove write permission from file content (diff) | |
download | linux-624ab4644819948e9dc87c114201e98f2e52490f.tar.xz linux-624ab4644819948e9dc87c114201e98f2e52490f.zip |
svcrpc: silence "unused variable" warning in !RPC_DEBUG case
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'net/sunrpc')
-rw-r--r-- | net/sunrpc/svc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/net/sunrpc/svc.c b/net/sunrpc/svc.c index dbf12ac5ecb7..b9ba2a8c1c19 100644 --- a/net/sunrpc/svc.c +++ b/net/sunrpc/svc.c @@ -1042,6 +1042,7 @@ static void svc_unregister(const struct svc_serv *serv, struct net *net) /* * dprintk the given error with the address of the client that caused it. */ +#ifdef RPC_DEBUG static __printf(2, 3) void svc_printk(struct svc_rqst *rqstp, const char *fmt, ...) { @@ -1058,6 +1059,9 @@ void svc_printk(struct svc_rqst *rqstp, const char *fmt, ...) va_end(args); } +#else +static __printf(2,3) void svc_printk(struct svc_rqst *rqstp, const char *fmt, ...) {} +#endif /* * Common routine for processing the RPC request. |