diff options
author | Jeff Layton <jlayton@primarydata.com> | 2014-11-17 16:58:04 -0500 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@primarydata.com> | 2014-11-24 17:31:46 -0500 |
commit | f895b252d4edf66b2895fb5a7b17a638665f3e1f (patch) | |
tree | 84d62f9a9f361be02f3dcf417664ff7682936353 /net/sunrpc/xprtrdma/verbs.c | |
parent | 10b89567db51e143c2f0828839332502916d012d (diff) |
sunrpc: eliminate RPC_DEBUG
It's always set to whatever CONFIG_SUNRPC_DEBUG is, so just use that.
Signed-off-by: Jeff Layton <jlayton@primarydata.com>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'net/sunrpc/xprtrdma/verbs.c')
-rw-r--r-- | net/sunrpc/xprtrdma/verbs.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/net/sunrpc/xprtrdma/verbs.c b/net/sunrpc/xprtrdma/verbs.c index 61c41298b4ea..b92b04083e40 100644 --- a/net/sunrpc/xprtrdma/verbs.c +++ b/net/sunrpc/xprtrdma/verbs.c | |||
@@ -57,7 +57,7 @@ | |||
57 | * Globals/Macros | 57 | * Globals/Macros |
58 | */ | 58 | */ |
59 | 59 | ||
60 | #ifdef RPC_DEBUG | 60 | #if IS_ENABLED(CONFIG_SUNRPC_DEBUG) |
61 | # define RPCDBG_FACILITY RPCDBG_TRANS | 61 | # define RPCDBG_FACILITY RPCDBG_TRANS |
62 | #endif | 62 | #endif |
63 | 63 | ||
@@ -313,7 +313,7 @@ rpcrdma_flush_cqs(struct rpcrdma_ep *ep) | |||
313 | rpcrdma_sendcq_upcall(ep->rep_attr.send_cq, ep); | 313 | rpcrdma_sendcq_upcall(ep->rep_attr.send_cq, ep); |
314 | } | 314 | } |
315 | 315 | ||
316 | #ifdef RPC_DEBUG | 316 | #if IS_ENABLED(CONFIG_SUNRPC_DEBUG) |
317 | static const char * const conn[] = { | 317 | static const char * const conn[] = { |
318 | "address resolved", | 318 | "address resolved", |
319 | "address error", | 319 | "address error", |
@@ -344,7 +344,7 @@ rpcrdma_conn_upcall(struct rdma_cm_id *id, struct rdma_cm_event *event) | |||
344 | struct rpcrdma_xprt *xprt = id->context; | 344 | struct rpcrdma_xprt *xprt = id->context; |
345 | struct rpcrdma_ia *ia = &xprt->rx_ia; | 345 | struct rpcrdma_ia *ia = &xprt->rx_ia; |
346 | struct rpcrdma_ep *ep = &xprt->rx_ep; | 346 | struct rpcrdma_ep *ep = &xprt->rx_ep; |
347 | #ifdef RPC_DEBUG | 347 | #if IS_ENABLED(CONFIG_SUNRPC_DEBUG) |
348 | struct sockaddr_in *addr = (struct sockaddr_in *) &ep->rep_remote_addr; | 348 | struct sockaddr_in *addr = (struct sockaddr_in *) &ep->rep_remote_addr; |
349 | #endif | 349 | #endif |
350 | struct ib_qp_attr attr; | 350 | struct ib_qp_attr attr; |
@@ -408,7 +408,7 @@ connected: | |||
408 | break; | 408 | break; |
409 | } | 409 | } |
410 | 410 | ||
411 | #ifdef RPC_DEBUG | 411 | #if IS_ENABLED(CONFIG_SUNRPC_DEBUG) |
412 | if (connstate == 1) { | 412 | if (connstate == 1) { |
413 | int ird = attr.max_dest_rd_atomic; | 413 | int ird = attr.max_dest_rd_atomic; |
414 | int tird = ep->rep_remote_cma.responder_resources; | 414 | int tird = ep->rep_remote_cma.responder_resources; |