提交 624ab464 编写于 作者: J J. Bruce Fields

svcrpc: silence "unused variable" warning in !RPC_DEBUG case

Signed-off-by: NJ. Bruce Fields <bfields@redhat.com>
上级 ec168676
...@@ -1042,6 +1042,7 @@ static void svc_unregister(const struct svc_serv *serv, struct net *net) ...@@ -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. * dprintk the given error with the address of the client that caused it.
*/ */
#ifdef RPC_DEBUG
static __printf(2, 3) static __printf(2, 3)
void svc_printk(struct svc_rqst *rqstp, const char *fmt, ...) void svc_printk(struct svc_rqst *rqstp, const char *fmt, ...)
{ {
...@@ -1058,6 +1059,9 @@ 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); 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. * Common routine for processing the RPC request.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册