OSDN Git Service
(root)
/
uclinux-h8
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ec16867
)
svcrpc: silence "unused variable" warning in !RPC_DEBUG case
author
J. Bruce Fields
<bfields@redhat.com>
Tue, 8 Jan 2013 21:22:15 +0000
(16:22 -0500)
committer
J. Bruce Fields
<bfields@redhat.com>
Wed, 23 Jan 2013 23:17:38 +0000
(18:17 -0500)
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
net/sunrpc/svc.c
patch
|
blob
|
history
diff --git
a/net/sunrpc/svc.c
b/net/sunrpc/svc.c
index
dbf12ac
..
b9ba2a8
100644
(file)
--- 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.