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/sunrpc/svc.c | |
parent | ec1686761753ead775e9474a6265323a4c555bc6 (diff) |
svcrpc: silence "unused variable" warning in !RPC_DEBUG case
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'net/sunrpc/svc.c')
-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) | |||
1042 | /* | 1042 | /* |
1043 | * dprintk the given error with the address of the client that caused it. | 1043 | * dprintk the given error with the address of the client that caused it. |
1044 | */ | 1044 | */ |
1045 | #ifdef RPC_DEBUG | ||
1045 | static __printf(2, 3) | 1046 | static __printf(2, 3) |
1046 | void svc_printk(struct svc_rqst *rqstp, const char *fmt, ...) | 1047 | void svc_printk(struct svc_rqst *rqstp, const char *fmt, ...) |
1047 | { | 1048 | { |
@@ -1058,6 +1059,9 @@ void svc_printk(struct svc_rqst *rqstp, const char *fmt, ...) | |||
1058 | 1059 | ||
1059 | va_end(args); | 1060 | va_end(args); |
1060 | } | 1061 | } |
1062 | #else | ||
1063 | static __printf(2,3) void svc_printk(struct svc_rqst *rqstp, const char *fmt, ...) {} | ||
1064 | #endif | ||
1061 | 1065 | ||
1062 | /* | 1066 | /* |
1063 | * Common routine for processing the RPC request. | 1067 | * Common routine for processing the RPC request. |