diff options
author | J. Bruce Fields <bfields@redhat.com> | 2013-01-08 16:22:15 -0500 |
---|---|---|
committer | J. Bruce Fields <bfields@redhat.com> | 2013-01-23 18:17:38 -0500 |
commit | 624ab4644819948e9dc87c114201e98f2e52490f (patch) | |
tree | 61f06b057a7422247ac58e9b6667c2a4efc1e51f /net | |
parent | ec1686761753ead775e9474a6265323a4c555bc6 (diff) | |
download | kernel_goldelico_gta04-624ab4644819948e9dc87c114201e98f2e52490f.zip kernel_goldelico_gta04-624ab4644819948e9dc87c114201e98f2e52490f.tar.gz kernel_goldelico_gta04-624ab4644819948e9dc87c114201e98f2e52490f.tar.bz2 |
svcrpc: silence "unused variable" warning in !RPC_DEBUG case
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'net')
-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 dbf12ac..b9ba2a8 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. |